#include <userver/utils/result_store.hpp>
Simple void value/exception store
Definition at line 49 of file result_store.hpp.
Public Member Functions | |
void | Retrieve () |
Checks value availability or rethrows the stored exception. | |
void | Get () const & |
void | SetValue () noexcept |
Marks the value as available. | |
void | SetException (std::exception_ptr &&) noexcept |
Stores an exception. | |
void | Retrieve () |
Retrieves the stored value or rethrows the stored exception. | |
const void & | Get () const & |
Returns the stored value or rethrows the stored exception. | |
void | SetValue (const void &) |
Stores a value. | |
void | SetValue (void &&) |
Stores a value. | |
void | SetException (std::exception_ptr &&) noexcept |
Stores an exception. | |
const void & utils::ResultStore< void >::Get | ( | ) | const & |
Returns the stored value or rethrows the stored exception.
std::logic_error | if no value/exception stored |
Definition at line 28 of file result_store.hpp.
|
inline |
Definition at line 100 of file result_store.hpp.
void utils::ResultStore< void >::Retrieve | ( | ) |
Retrieves the stored value or rethrows the stored exception.
std::logic_error | if no value/exception stored |
Definition at line 24 of file result_store.hpp.
|
inline |
Checks value availability or rethrows the stored exception.
std::logic_error | if no value/exception stored |
Definition at line 98 of file result_store.hpp.
|
noexcept |
Stores an exception.
Definition at line 37 of file result_store.hpp.
|
inlinenoexcept |
Stores an exception.
Definition at line 108 of file result_store.hpp.
|
inlinenoexcept |
Marks the value as available.
Definition at line 106 of file result_store.hpp.
void utils::ResultStore< void >::SetValue | ( | const void & | value | ) |
Stores a value.
Definition at line 31 of file result_store.hpp.
void utils::ResultStore< void >::SetValue | ( | void && | value | ) |
Stores a value.
Definition at line 34 of file result_store.hpp.