Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/result.hpp"
Representation of the result of some operation, EITHER a value or a failure.
Optional Result value or status of some operation.
It can be created for passing a result produced by the operation, or the failure to do so. The value can be retrieved by implicit or explicit conversion.
error::State | on any attempt to access the value in case of failure |
Definition at line 97 of file result.hpp.
Public Member Functions | |
Result (lumiera::Error const &reason) | |
mark failed result, with reason given. More... | |
Private Attributes | |
wrapper::ItemWrapper< RES > | value_ |
|
inline |
mark failed result, with reason given.
Definition at line 161 of file result.hpp.
Referenced by Result< void >::Result(), and Result< TAR &>::Result().