#include <resultbase.h>
Public Types | |
using | ValueType = T & |
using | CopyType = T & |
using | MoveType = DummyParamType & |
using | DeleteType = typename std::decay< T >::type && |
template<typename T2 > | |
using | ConstructibleFrom = std::enable_if< STD_IS_REPLACEMENT(same, T &, T2)||STD_IS_REPLACEMENT(same, typename std::remove_const< T >::type &, T2)> |
Public Member Functions | |
ResultBase () | |
MAXON_IMPLICIT | ResultBase (CopyType value) |
MAXON_ATTRIBUTE_FORCE_INLINE T & | GetValue () const |
MAXON_ATTRIBUTE_FORCE_INLINE T & | GetValueAndError (ThreadReferencedError &error) const |
MAXON_ATTRIBUTE_FORCE_INLINE T & | GetValueAndError (Error &error) const |
MAXON_ATTRIBUTE_FORCE_INLINE const ThreadReferencedError & | GetErrorStorage () const |
MAXON_ATTRIBUTE_FORCE_INLINE ThreadReferencedError & | GetErrorStorage () |
MAXON_ATTRIBUTE_FORCE_INLINE T & | UncheckedGetValue () const |
const Result< T * > & | operator& () const |
Static Public Attributes | |
static constexpr Bool | HAS_ERROR |
Protected Attributes | |
ThreadReferencedError | _error |
T * | _value |
using ValueType = T& |
using CopyType = T& |
using MoveType = DummyParamType& |
using DeleteType = typename std::decay<T>::type&& |
using ConstructibleFrom = std::enable_if<STD_IS_REPLACEMENT(same, T&, T2) || STD_IS_REPLACEMENT(same, typename std::remove_const<T>::type&, T2)> |
ResultBase | ( | ) |
MAXON_IMPLICIT ResultBase | ( | CopyType | value | ) |
MAXON_ATTRIBUTE_FORCE_INLINE T& GetValue | ( | ) | const |
MAXON_ATTRIBUTE_FORCE_INLINE T& GetValueAndError | ( | ThreadReferencedError & | error | ) | const |
MAXON_ATTRIBUTE_FORCE_INLINE T& GetValueAndError | ( | Error & | error | ) | const |
MAXON_ATTRIBUTE_FORCE_INLINE const ThreadReferencedError& GetErrorStorage | ( | ) | const |
MAXON_ATTRIBUTE_FORCE_INLINE ThreadReferencedError& GetErrorStorage | ( | ) |
MAXON_ATTRIBUTE_FORCE_INLINE T& UncheckedGetValue | ( | ) | const |
const Result<T*>& operator& | ( | ) | const |
Converts from a Result<T&> to a Result<T*>.
|
staticconstexpr |
|
protected |
|
protected |