FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::Result< void, E > Class Template Reference

Result<void, E>: success carries nothing. More...

#include <fastmm/core/result.hpp>

Public Types

using value_type = void
 
using error_type = E
 

Public Member Functions

constexpr Result () noexcept
 
constexpr Result (Unexpected< E > u) noexcept
 
constexpr bool has_value () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr const E & error () const noexcept
 
template<class F >
constexpr auto and_then (F &&f) const -> std::invoke_result_t< F >
 

Detailed Description

template<class E>
class fastmm::Result< void, E >

Result<void, E>: success carries nothing.

Member Typedef Documentation

◆ value_type

template<class E >
using fastmm::Result< void, E >::value_type = void

◆ error_type

template<class E >
using fastmm::Result< void, E >::error_type = E

Constructor & Destructor Documentation

◆ Result() [1/2]

template<class E >
constexpr fastmm::Result< void, E >::Result ( )
inlineconstexprnoexcept

◆ Result() [2/2]

template<class E >
constexpr fastmm::Result< void, E >::Result ( Unexpected< E >  u)
inlineconstexprnoexcept

Member Function Documentation

◆ has_value()

template<class E >
constexpr bool fastmm::Result< void, E >::has_value ( ) const
inlineconstexprnoexcept

◆ operator bool()

template<class E >
constexpr fastmm::Result< void, E >::operator bool ( ) const
inlineexplicitconstexprnoexcept

◆ error()

template<class E >
constexpr const E & fastmm::Result< void, E >::error ( ) const
inlineconstexprnoexcept

◆ and_then()

template<class E >
template<class F >
constexpr auto fastmm::Result< void, E >::and_then ( F &&  f) const -> std::invoke_result_t<F>
inlineconstexpr