Templated return type with support for error conditions. More...
#include <result.hpp>
Public Types | |
using | Value = T |
Public Member Functions | |
Result (Value &&value) noexcept | |
Result (const Value &value) | |
Result (std::error_code err) noexcept | |
Result (Result &&other) | |
Result (const Result &other) noexcept | |
template<typename ErrorCodeEnum , typename = typename std::enable_if<std::is_error_code_enum<ErrorCodeEnum>::value>::type> | |
Result (ErrorCodeEnum err) noexcept | |
Result (std::errc err) noexcept | |
auto | operator= (Result &&other) noexcept -> Result & |
auto | operator= (const Result &other) -> Result & |
operator bool () const noexcept | |
auto | operator* () -> Value & |
auto | operator* () const -> const Value & |
auto | operator-> () -> Value * |
auto | operator-> () const -> const Value * |
auto | error () const noexcept -> std::error_code |
auto | logged () const noexcept -> bool |
auto | skipped () const noexcept -> bool |
Templated return type with support for error conditions.
Definition at line 37 of file result.hpp.
using tiltfive::Result< T >::Value = T |
Definition at line 39 of file result.hpp.
|
inlinenoexcept |
Definition at line 41 of file result.hpp.
|
inline |
Definition at line 43 of file result.hpp.
|
inlinenoexcept |
Definition at line 45 of file result.hpp.
|
inline |
Definition at line 47 of file result.hpp.
|
inlinenoexcept |
Definition at line 55 of file result.hpp.
|
inlinenoexcept |
Definition at line 66 of file result.hpp.
|
inlinenoexcept |
Definition at line 68 of file result.hpp.
|
inline |
Definition at line 70 of file result.hpp.
|
inlinenoexcept |
Definition at line 153 of file result.hpp.
|
inlinenoexcept |
Definition at line 160 of file result.hpp.
|
inlineexplicitnoexcept |
Definition at line 121 of file result.hpp.
|
inline |
Definition at line 125 of file result.hpp.
|
inline |
Definition at line 132 of file result.hpp.
|
inline |
Definition at line 139 of file result.hpp.
|
inline |
Definition at line 146 of file result.hpp.
|
inline |
Definition at line 100 of file result.hpp.
|
inlinenoexcept |
Definition at line 79 of file result.hpp.
|
inlinenoexcept |
Definition at line 164 of file result.hpp.
std::error_code tiltfive::Result< T >::mErr |
Definition at line 179 of file result.hpp.
Value tiltfive::Result< T >::mValue |
Definition at line 178 of file result.hpp.