|
libquentier 0.8.0
The library for rich desktop clients of Evernote service
|
The Result template class represents the bare bones result monad implementation which either contains some valid value or an error. More...
#include <Result.h>
Public Member Functions | |
| template<typename T1 = T, typename std::enable_if_t<!std::is_void_v< std::decay_t< T1 > > > * = nullptr> | |
| Result (T1 t) | |
| Result (Error error) | |
| Result (const Result< T, Error > &other) | |
| Result (Result< T, Error > &&other) | |
| Result & | operator= (const Result< T, Error > &other) |
| Result & | operator= (Result< T, Error > &&other) |
| bool | isValid () const noexcept |
| operator bool () const noexcept | |
| template<typename T1 = T, typename std::enable_if_t<!std::is_void_v< std::decay_t< T1 > > > * = nullptr> | |
| T1 & | get () |
| template<typename T1 = T, typename std::enable_if_t<!std::is_void_v< std::decay_t< T1 > > > * = nullptr> | |
| const T1 & | get () const |
| template<typename T1 = T, typename std::enable_if_t<!std::is_void_v< std::decay_t< T1 > > > * = nullptr> | |
| T1 & | operator* () |
| template<typename T1 = T, typename std::enable_if_t<!std::is_void_v< std::decay_t< T1 > > > * = nullptr> | |
| const T1 & | operator* () const |
| const Error & | error () const |
| Error & | error () |
The Result template class represents the bare bones result monad implementation which either contains some valid value or an error.