proxygen
|
#include <Expected.h>
Public Types | |
using | value_type = Value |
using | error_type = Error |
Public Member Functions | |
template<class E = Error, class = decltype(E{})> | |
constexpr | ExpectedStorage () noexcept(noexcept(E{})) |
constexpr | ExpectedStorage (EmptyTag) noexcept |
template<class... Vs> | |
constexpr | ExpectedStorage (ValueTag, Vs &&...vs) noexcept(noexcept(Value(static_cast< Vs && >(vs)...))) |
template<class... Es> | |
constexpr | ExpectedStorage (ErrorTag, Es &&...es) noexcept(noexcept(Error(static_cast< Es && >(es)...))) |
void | clear () noexcept |
template<class... Vs> | |
void | assignValue (Vs &&...vs) |
template<class... Es> | |
void | assignError (Es &&...es) |
template<class Other > | |
void | assign (Other &&that) |
Value & | value ()& |
const Value & | value () const & |
Value && | value ()&& |
FOLLY_PUSH_WARNING | FOLLY_MSVC_DISABLE_WARNING (4702) Error &error()& |
const Error & | error () const & |
Error && | error ()&& |
Static Public Member Functions | |
static constexpr bool | uninitializedByException () noexcept |
Public Attributes | |
union { | |
Value value_ | |
Error error_ | |
char ch_ | |
}; | |
Which | which_ |
Definition at line 185 of file Expected.h.
using folly::expected_detail::ExpectedStorage< Value, Error, StorageType >::error_type = Error |
Definition at line 187 of file Expected.h.
using folly::expected_detail::ExpectedStorage< Value, Error, StorageType >::value_type = Value |
Definition at line 186 of file Expected.h.
|
inlinenoexcept |
Definition at line 196 of file Expected.h.
|
inlineexplicitnoexcept |
Definition at line 198 of file Expected.h.
|
inlineexplicitnoexcept |
Definition at line 201 of file Expected.h.
|
inlineexplicitnoexcept |
Definition at line 205 of file Expected.h.
|
inline |
Definition at line 225 of file Expected.h.
|
inline |
Definition at line 220 of file Expected.h.
|
inline |
Definition at line 215 of file Expected.h.
|
inlinenoexcept |
Definition at line 208 of file Expected.h.
|
inline |
Definition at line 255 of file Expected.h.
|
inline |
Definition at line 258 of file Expected.h.
|
inline |
Definition at line 251 of file Expected.h.
|
inlinestaticnoexcept |
Definition at line 209 of file Expected.h.
|
inline |
Definition at line 238 of file Expected.h.
|
inline |
Definition at line 241 of file Expected.h.
|
inline |
Definition at line 244 of file Expected.h.
union { ... } |
char folly::expected_detail::ExpectedStorage< Value, Error, StorageType >::ch_ |
Definition at line 191 of file Expected.h.
Error folly::expected_detail::ExpectedStorage< Value, Error, StorageType >::error_ |
Definition at line 190 of file Expected.h.
Value folly::expected_detail::ExpectedStorage< Value, Error, StorageType >::value_ |
Definition at line 189 of file Expected.h.
Referenced by folly::Expected< int, E >::Expected().
Which folly::expected_detail::ExpectedStorage< Value, Error, StorageType >::which_ |
Definition at line 193 of file Expected.h.