|
JSON Voorhees
Killer JSON for C++
|
The set of result operations which depend on the type of TValue.
More...
#include <jsonv/result.hpp>
Inheritance diagram for jsonv::result_value_operations< TSelf, TValue >:Public Types | |
| using | value_type = TValue |
| See result::value_type. | |
Public Member Functions | |
| const value_type & | value () const & |
| value_type & | value () & |
| value_type && | value () && |
| template<typename UValue > | |
| constexpr value_type | value_or (UValue &&recovery_value) const &noexcept(std::is_nothrow_copy_constructible_v< value_type > &&std::is_nothrow_constructible_v< value_type, UValue >) |
| template<typename UValue > | |
| constexpr value_type | value_or (UValue &&recovery_value) &&noexcept(std::is_nothrow_move_constructible_v< value_type > &&std::is_nothrow_constructible_v< value_type, UValue >) |
| const value_type & | operator* () const & |
| value_type & | operator* () & |
| value_type && | operator* () && |
| const value_type * | operator-> () const |
| value_type * | operator-> () |
The set of result operations which depend on the type of TValue.
This is how result gets operations like value_or, operator*, and operator->. If TValue is void, those operations are not available.
Definition at line 692 of file result.hpp.
| using jsonv::result_value_operations< TSelf, TValue >::value_type = TValue |
See result::value_type.
Definition at line 698 of file result.hpp.
|
inline |
Definition at line 737 of file result.hpp.
|
inline |
Definition at line 738 of file result.hpp.
|
inline |
Get the value inside of this result if it is result_state::ok.
| bad_result_access | if state is not result_state::ok. |
Definition at line 736 of file result.hpp.
|
inline |
Definition at line 746 of file result.hpp.
|
inline |
Get a pointer to the value inside of this result if it is result_state::ok.
| bad_result_access | if state is not result_state::ok. |
Definition at line 745 of file result.hpp.
|
inline |
Definition at line 705 of file result.hpp.
|
inline |
Definition at line 706 of file result.hpp.
|
inline |
Get the value inside of this result if it is result_state::ok.
| bad_result_access | if state is not result_state::ok. |
Definition at line 704 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 722 of file result.hpp.
|
inlineconstexprnoexcept |
Get the value inside of this result if it is result_state::ok and returns recovery_value in other cases.
Definition at line 712 of file result.hpp.