BioCMAMC-ST
Result< S, T > Struct Template Reference

#include <results.hpp>

Inheritance diagram for Result< S, T >:
[legend]
Collaboration diagram for Result< S, T >:
[legend]

Public Member Functions

constexpr Result () noexcept
 
constexpr Result (T const &&t) noexcept
 
constexpr Result (S &&s) noexcept
 
constexpr operator bool () const noexcept
 
constexpr bool valid () const noexcept
 
constexpr bool invalid () const noexcept
 
constexpr auto get () const noexcept -> T
 
auto gets () const -> S
 
template<typename Func , typename Err >
auto match (Func &&f, Err &&r) noexcept
 

Constructor & Destructor Documentation

◆ Result() [1/3]

template<typename S , typename T >
Result< S, T >::Result ( )
inlineexplicitconstexprnoexcept

◆ Result() [2/3]

template<typename S , typename T >
Result< S, T >::Result ( T const && t)
inlineexplicitconstexprnoexcept

◆ Result() [3/3]

template<typename S , typename T >
Result< S, T >::Result ( S && s)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ get()

template<typename S , typename T >
auto Result< S, T >::get ( ) const -> T
inlinenodiscardconstexprnoexcept
Here is the call graph for this function:

◆ gets()

template<typename S , typename T >
auto Result< S, T >::gets ( ) const -> S
inlinenodiscard
Here is the call graph for this function:

◆ invalid()

template<typename S , typename T >
bool Result< S, T >::invalid ( ) const
inlinenodiscardconstexprnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ match()

template<typename S , typename T >
template<typename Func , typename Err >
auto Result< S, T >::match ( Func && f,
Err && r )
inlinenoexcept
Here is the call graph for this function:

◆ operator bool()

template<typename S , typename T >
Result< S, T >::operator bool ( ) const
inlineexplicitconstexprnoexcept
Here is the call graph for this function:

◆ valid()

template<typename S , typename T >
bool Result< S, T >::valid ( ) const
inlinenodiscardconstexprnoexcept
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: