ledger-core
Public Member Functions | List of all members
ledger::core::Either< Left, Right > Class Template Reference

Public Member Functions

 Either (const Left &left)
 
 Either (const Right &right)
 
 Either (const Option< Left > &left, const Option< Right > &right)
 
 Either (Either< Left, Right > &&either)
 
 Either (const Either< Left, Right > &either)
 
 Either (Either &either)
 
Either< Left, Right > & operator= (const Either< Left, Right > &either)
 
Either< Left, Right > & operator= (const Left &left)
 
Either< Left, Right > & operator= (const Right &right)
 
bool isRight () const
 
bool isLeft () const
 
 operator bool ()
 
const Right & operator* () const
 
const Right * operator-> () const
 
Left & getLeft ()
 
Right & getRight ()
 
const Left & getLeft () const
 
const Right & getRight () const
 
 operator Left () const
 
 operator Right () const
 
Either< Right, Left > swap () const
 
template<typename T >
fold (std::function< T(const Left &)> f1, std::function< T(const Right &)> f2) const
 

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