#include <result.h>
|
| using | T = std::conditional_t<std::is_same_v<M, void>, std::monostate, M> |
template<class
M>
class util::Result< M >
Definition at line 35 of file result.h.
| using util::Result< M >::T = std::conditional_t<std::is_same_v<M, void>, std::monostate, M> |
|
private |
◆ Result() [1/5]
Disallow copy constructor, require Result to be moved for efficiency.
◆ Result() [2/5]
◆ Result() [3/5]
◆ Result() [4/5]
◆ Result() [5/5]
◆ ~Result()
◆ has_value()
std::optional methods, so functions returning optional<T> can change to return Result<T> with minimal changes to existing code, and vice versa.
Definition at line 64 of file result.h.
◆ operator bool()
◆ operator*() [1/2]
◆ operator*() [2/2]
◆ operator->() [1/2]
◆ operator->() [2/2]
◆ operator=() [1/2]
Disallow operator= to avoid confusion in the future when the Result class gains support for richer error reporting, and callers should have ability to set a new result value without clearing existing error messages.
◆ operator=() [2/2]
◆ value() [1/2]
◆ value() [2/2]
◆ value_or() [1/2]
◆ value_or() [2/2]
◆ ErrorString
◆ m_variant
The documentation for this class was generated from the following file: