|
JSON Voorhees
Killer JSON for C++
|
A wrapper type for creating a result with result_state::ok.
More...
#include <jsonv/result.hpp>
Public Types | |
| using | value_type = TValue |
Public Member Functions | |
| template<typename... TArgs> | |
| constexpr | ok (TArgs &&... args) noexcept(std::is_nothrow_constructible_v< value_type, TArgs... >) |
| Create an instance from the given args. | |
| const value_type & | get () const &noexcept |
| value_type & | get () &noexcept |
| value_type && | get () &&noexcept |
A wrapper type for creating a result with result_state::ok.
It is implicitly convertible to any result with a convertible-to value_type.
Definition at line 568 of file result.hpp.
Definition at line 572 of file result.hpp.
|
inlineexplicitconstexprnoexcept |
Create an instance from the given args.
Definition at line 577 of file result.hpp.
|
inlinenoexcept |
Definition at line 585 of file result.hpp.
|
inlinenoexcept |
Definition at line 584 of file result.hpp.
Get the value inside of this instance.
Definition at line 583 of file result.hpp.