GATE
gate::Result< T, E > Class Template Reference

Public Types

typedef T value_t
 
typedef E error_t
 
typedef Result< T, E > self_t
 
typedef ResultValue< T, ResultSuccessIdResultSuccessType
 
typedef ResultValue< E, ResultErrorIdResultErrorType
 

Public Member Functions

bool_t empty () const noexcept
 
void createValue ()
 
void createValue (value_t const &src)
 
void createError ()
 
void createError (error_t const &src)
 
 Result (ResultSuccessType const &successType)
 
 Result (ResultErrorType const &errorType)
 
 Result (self_t const &src)
 
self_toperator= (self_t const &src)
 
bool_t hasValue () const noexcept
 
value_t & value () const noexcept
 
void checkError (char const *source) const
 
void checkException (char const *source) const
 
value_t & valueOrError () const
 
value_t & valueOrExcept () const
 
bool_t hasError () const noexcept
 
error_t & error () const noexcept
 
bool_t operator! () const noexcept
 
value_t & operator* () noexcept
 
value_t const & operator* () const noexcept
 

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