error_or
Description
Class which is basically a variant. Replaces exceptions
Exception alternative. Since I code without exceptions this class is essentially a kind of exception replacement.
Specializations
Vars
std::variant< error , fix_void< T > > |
||
Methods
constexpr |
error_or ( ) |
constexpr |
error_or ( const fix_void< T > & ) |
constexpr |
error_or ( fix_void< T > && ) |
constexpr |
|
constexpr |
|
bool |
is_value ( ) |
bool |
is_error ( ) |
class error & |
get_error ( ) |
const class error & |
get_error ( ) |
fix_void< T > & |
get_value ( ) |
const fix_void< T > & |
get_value ( ) |
Vars Description
std::variant< error , fix_void< T > > value_or_error_
Methods Description
constexpr error_or ( )
constexpr error_or ( const fix_void< T > & )
constexpr error_or ( fix_void< T > && )
constexpr error_or ( const error & )
constexpr error_or ( error && )
bool is_value ( )
bool is_error ( )
const class error & get_error ( )
fix_void< T > & get_value ( )
const fix_void< T > & get_value ( )