mitteLib
|
#include <result.hpp>
Public Types | |
using | error_type = E |
using | value_type = T |
using | value_type_as_tuple = std::tuple<T> |
Public Member Functions | |
result ()=default | |
result (result &&) noexcept=default | |
result (result const &other) | |
result (E error) | |
result (T data) | |
result & | operator= (E error) |
result & | operator= (T data) |
result & | operator= (result &&) noexcept=default |
result & | operator= (result const &other) |
T & | operator* () |
T const & | operator* () const |
T * | operator-> () |
T const * | operator-> () const |
T const & | release () const & |
T & | release () & |
T && | release () && |
operator bool () const | |
E | error () const |
enum_type | type () const |
Static Public Attributes | |
static constexpr std::size_t | value_size = 1 |
Private Types | |
template<result_content RC> | |
using | content_wrap = typename result_impl<E, T>::template content_wrap<RC> |
using | base = any_of<result_content, result_impl<E, T>::template content_wrap, result_content::error> |
Private Types inherited from mlab::any_of< result_content, result_impl< E, T >::template content_wrap, result_content::error > | |
using | value_type |
using | enum_type |
Additional Inherited Members | |
Private Member Functions inherited from mlab::any_of< result_content, result_impl< E, T >::template content_wrap, result_content::error > | |
any_of () | |
any_of (T< E > obj) | |
any_of (any_of &&other) noexcept | |
any_of (any_of const &)=delete | |
any_of & | operator= (any_of &&other) noexcept |
any_of & | operator= (any_of const &)=delete |
any_of & | operator= (T< E > obj) |
any_of< result_content, T, Default > & | operator= (T< E > obj) |
~any_of () | |
enum_type | type () const |
T< E > const & | get () const |
T< E > & | get () |
T< E > const & | get () const |
any_of (enum_type e) | |
void | set (U &&obj) |
Static Private Attributes inherited from mlab::any_of< result_content, result_impl< E, T >::template content_wrap, result_content::error > | |
static constexpr enum_type | default_type |
|
private |
|
private |
using mlab::result< E, T >::error_type = E |
using mlab::result< E, T >::value_type = T |
using mlab::result< E, T >::value_type_as_tuple = std::tuple<T> |
|
default |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inlineexplicit |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
result< E, T > & mlab::result< E, T >::operator= | ( | E | error | ) |
|
defaultnoexcept |
result & mlab::result< E, T >::operator= | ( | result< E, T > const & | other | ) |
result< E, T > & mlab::result< E, T >::operator= | ( | T | data | ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
staticconstexpr |