|
|
| Result ()=default |
| | Constructs a successful result with an empty value.
|
| |
| | Result (const detail::Success< void > &) |
| | Constructs a successful result with an empty value.
|
| |
| | Result (const detail::Success< U > &s) |
| | Constructs a successful result with the specified value.
|
| |
| | Result (detail::Success< U > &&s) |
| | Constructs a successful result with the specified value.
|
| |
| | Result (const detail::Failure< U > &f) |
| | Constructs a failure result with the specified error.
|
| |
| | Result (detail::Failure< U > &&f) |
| | Constructs a failure result with the specified error.
|
| |
|
| Result (U &&u, typename ::std::enable_if< ::std::is_constructible< value_type, U >::value &&!::std::is_constructible< error_type, U >::value, bool >::type=false) |
| | Constructs a successful result with value u if U is constructible to #value_type and not constructible to #error_type.
|
| |
|
| Result (U &&u, typename ::std::enable_if< !::std::is_constructible< value_type, U >::value &&::std::is_constructible< error_type, U >::value, bool >::type=false) |
| | Constructs a failure result with error u if U is constructible to #error_type and not constructible to #value_type.
|
| |
|
| operator bool () const noexcept |
| | Check whether *this contains a value (and not a non-zero error).
|
| |
| bool | has_value () const noexcept |
| | Returns true if *this contains a value (and not a non-zero error).
|
| |
|
value_type & | value () |
| | Returns a reference to the value if *this contains a value, and throws an exception if *this contains a non-zero error.
|
| |
|
const value_type & | value () const |
| | Returns a reference to the value if *this contains a value, and throws an exception if *this contains a non-zero error.
|
| |
| bool | has_error () const noexcept |
| | Returns true if *this contains a non-zero error.
|
| |
|
error_type & | error () noexcept |
| | Returns a reference to the error, if any.
|
| |
|
const error_type & | error () const noexcept |
| | Returns a reference to the error, if any.
|
| |
template<class T>
class lely::util::Result< T, typename ::std::enable_if<!::std::is_void< T >::value >::type >
Definition at line 313 of file result.hpp.