ResultOk< void > Class Reference

#include <resultbase.h>

Public Types

using IsResult = std::true_type
 
using ValueType = void
 

Public Member Functions

 ResultOk ()
 
MAXON_IMPLICIT ResultOk (ERROR_OK)
 
template<typename T2 >
MAXON_IMPLICIT ResultOk (const ResultOk< T2 > &value)
 
void GetValue () const
 
void GetValue ()
 
void UncheckedGetValue () const
 
void IfErrIgnore (const char *) const
 
Bool operator== (ERROR_OK) const
 
Bool operator== (ERROR_FAILED) const
 
const ThreadReferencedError & GetErrorStorage () const
 

Static Public Attributes

static constexpr Bool HAS_ERROR
 

Member Typedef Documentation

◆ IsResult

using IsResult = std::true_type

◆ ValueType

using ValueType = void

Constructor & Destructor Documentation

◆ ResultOk() [1/3]

ResultOk ( )

◆ ResultOk() [2/3]

◆ ResultOk() [3/3]

MAXON_IMPLICIT ResultOk ( const ResultOk< T2 > &  value)

Member Function Documentation

◆ GetValue() [1/2]

void GetValue ( ) const

◆ GetValue() [2/2]

void GetValue ( )

◆ UncheckedGetValue()

void UncheckedGetValue ( ) const

◆ IfErrIgnore()

void IfErrIgnore ( const char *  ) const

◆ operator==() [1/2]

Bool operator== ( ERROR_OK  ) const

◆ operator==() [2/2]

Bool operator== ( ERROR_FAILED  ) const

◆ GetErrorStorage()

const ThreadReferencedError& GetErrorStorage ( ) const

Member Data Documentation

◆ HAS_ERROR

constexpr Bool HAS_ERROR
staticconstexpr