#include <mp-coro/bits/storage.h>
Storage class that can either contain a value, an exception, or be empty.
Public Types | |
using | value_type = T |
Public Member Functions | |
void | set_exception (std::exception_ptr ptr) noexcept |
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 |
using value_type = T |
|
inlinenoexcept |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |