#include <mp-coro/bits/storage.h>
Storage class that can either contain a value, an exception, or be empty.
Public Member Functions | |
template<std::convertible_to< T > U> | |
void | set_value (U &&value) noexcept(std::is_nothrow_constructible_v< T, decltype(std::forward< U >(value))>) |
const T & | get () const & |
T && | get () && |
Protected Attributes | |
std::variant< std::monostate, std::exception_ptr, T > | result |
|
inlinenoexcept |
|
inline |
|
inline |
|
protected |