Storage backing an Expected, holding either a value or an error.
Declared in <folly/Expected.h>
template<
class Value,
class Error,
StorageType = expected_detail::getStorageType<Value, Error>()>
struct ExpectedStorage;
| Name | Description |
|---|---|
error_type | The stored error type. |
value_type | The stored value type. |
| Name | Description |
|---|---|
ExpectedStorage [constructor] | Constructors |
assign | Copies or moves the active alternative from another storage. |
assignError | Assigns an error into the storage. |
assignValue | Assigns a value into the storage. |
clear | Releases any held object; a no-op for trivial storage. |
error | Accesses the stored error. |
value | Accesses the stored value. |
| Name | Description |
|---|---|
uninitializedByException | Reports whether construction was interrupted by an exception. |
| Name | Description |
|---|---|
ch_ [variant member] | Placeholder used while empty. |
error_ [variant member] | The error alternative. |
value_ [variant member] | The value alternative. |
which_ | Discriminator for the active alternative. |
| Name |
|---|
ExpectedStorage<Value, Error, StorageType::ePODStruct> |
ExpectedStorage<Value, Error, StorageType::eUnion> |