proxygen
folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct > Struct Template Reference

#include <Expected.h>

Public Types

using value_type = Value
 
using error_type = Error
 

Public Member Functions

constexpr ExpectedStorage () noexcept
 
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

Which which_
 
Error error_
 
Value value_
 

Detailed Description

template<class Value, class Error>
struct folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >

Definition at line 492 of file Expected.h.

Member Typedef Documentation

template<class Value , class Error >
using folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::error_type = Error

Definition at line 494 of file Expected.h.

template<class Value , class Error >
using folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::value_type = Value

Definition at line 493 of file Expected.h.

Constructor & Destructor Documentation

Member Function Documentation

template<class Value , class Error >
template<class Other >
void folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::assign ( Other &&  that)
inline
template<class Value , class Error >
template<class... Es>
void folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::assignError ( Es &&...  es)
inline
template<class Value , class Error >
template<class... Vs>
void folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::assignValue ( Vs &&...  vs)
inline
template<class Value , class Error >
void folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::clear ( )
inlinenoexcept

Definition at line 511 of file Expected.h.

511 {}
template<class Value , class Error >
const Error& folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::error ( ) const
inline

Definition at line 556 of file Expected.h.

template<class Value , class Error >
Error&& folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::error ( )
inline

Definition at line 559 of file Expected.h.

References FOLLY_POP_WARNING, and folly::gen::move.

559  {
560  return std::move(error_);
561  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<class Value , class Error >
FOLLY_PUSH_WARNING folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::FOLLY_MSVC_DISABLE_WARNING ( 4702  )
inline

Definition at line 552 of file Expected.h.

template<class Value , class Error >
static constexpr bool folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::uninitializedByException ( )
inlinestaticnoexcept

Definition at line 512 of file Expected.h.

512  {
513  return false;
514  }
template<class Value , class Error >
Value& folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::value ( )
inline

Definition at line 539 of file Expected.h.

template<class Value , class Error >
const Value& folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::value ( ) const
inline

Definition at line 542 of file Expected.h.

template<class Value , class Error >
Value&& folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::value ( )
inline

Definition at line 545 of file Expected.h.

References FOLLY_PUSH_WARNING, and folly::gen::move.

545  {
546  return std::move(value_);
547  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

template<class Value , class Error >
Error folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::error_

Definition at line 496 of file Expected.h.

template<class Value , class Error >
Value folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::value_

Definition at line 497 of file Expected.h.

template<class Value , class Error >
Which folly::expected_detail::ExpectedStorage< Value, Error, StorageType::ePODStruct >::which_

Definition at line 495 of file Expected.h.


The documentation for this struct was generated from the following file: