Euphoria
|
eu::Result< T, Error > Struct Template Reference
#include <result.h>
Public Types | |
using | Self = Result< T, Error > |
Public Member Functions | |
const T & | get_value () const |
const Error & | get_error () const |
operator bool () const | |
const T & | operator* () const |
Static Public Member Functions | |
static Self | create_value (const T &t) |
static Self | create_error (const Error &error) |
Detailed Description
template<typename T, typename Error = std::string>
struct eu::Result< T, Error >
Member Typedef Documentation
◆ Self
template<typename T , typename Error = std::string>
using eu::Result< T, Error >::Self = Result<T, Error> |
Member Function Documentation
◆ create_error()
template<typename T , typename Error = std::string>
|
inlinestatic |
◆ create_value()
template<typename T , typename Error = std::string>
|
inlinestatic |
◆ get_error()
template<typename T , typename Error = std::string>
|
inline |
◆ get_value()
template<typename T , typename Error = std::string>
|
inline |
◆ operator bool()
template<typename T , typename Error = std::string>
|
inline |
◆ operator*()
template<typename T , typename Error = std::string>
|
inline |
The documentation for this struct was generated from the following file:
- libs/base/src/base/result.h