proxygen
folly::ContainsExpected Class Reference

Public Member Functions

 ContainsExpected ()
 
 ContainsExpected (int x)
 
bool hasValue () const
 
int value () const
 
 ContainsExpected (const ContainsExpected &other)=default
 
ContainsExpectedoperator= (const ContainsExpected &other)=default
 
 ContainsExpected (ContainsExpected &&other)=default
 
ContainsExpectedoperator= (ContainsExpected &&other)=default
 

Private Attributes

Expected< int, Eex_
 

Detailed Description

Definition at line 530 of file ExpectedTest.cpp.

Constructor & Destructor Documentation

folly::ContainsExpected::ContainsExpected ( )
inline

Definition at line 532 of file ExpectedTest.cpp.

532 {}
folly::ContainsExpected::ContainsExpected ( int  x)
inlineexplicit

Definition at line 533 of file ExpectedTest.cpp.

533 : ex_(x) {}
Definition: InvokeTest.cpp:58
Expected< int, E > ex_
folly::ContainsExpected::ContainsExpected ( const ContainsExpected other)
default
folly::ContainsExpected::ContainsExpected ( ContainsExpected &&  other)
default

Member Function Documentation

bool folly::ContainsExpected::hasValue ( ) const
inline

Definition at line 534 of file ExpectedTest.cpp.

Referenced by folly::TEST().

534  {
535  return ex_.hasValue();
536  }
constexpr bool hasValue() const noexcept
Definition: Expected.h:1107
Expected< int, E > ex_
ContainsExpected& folly::ContainsExpected::operator= ( const ContainsExpected other)
default
ContainsExpected& folly::ContainsExpected::operator= ( ContainsExpected &&  other)
default
int folly::ContainsExpected::value ( ) const
inline

Definition at line 537 of file ExpectedTest.cpp.

Referenced by folly::TEST().

537  {
538  return ex_.value();
539  }
const Value & value() const &
Definition: Expected.h:1117
Expected< int, E > ex_

Member Data Documentation

Expected<int, E> folly::ContainsExpected::ex_
private

Definition at line 547 of file ExpectedTest.cpp.


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