3.0.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
fcppt::either::object< Failure, Success > Class Template Reference

Public Types

typedef Failure failure
 
typedef Success success
 

Public Member Functions

 object (Success &&)
 
 object (Success const &)
 
 object (Failure &&)
 
 object (Failure const &)
 
bool has_success () const
 
bool has_failure () const
 
Success & get_success_unsafe ()
 
Success const & get_success_unsafe () const
 
Failure & get_failure_unsafe ()
 
Failure const & get_failure_unsafe () const
 

Member Typedef Documentation

◆ failure

template<typename Failure , typename Success >
typedef Failure fcppt::either::object< Failure, Success >::failure

◆ success

template<typename Failure , typename Success >
typedef Success fcppt::either::object< Failure, Success >::success

Constructor & Destructor Documentation

◆ object() [1/4]

template<typename Failure , typename Success >
fcppt::either::object< Failure, Success >::object ( Success &&  )
explicit

◆ object() [2/4]

template<typename Failure , typename Success >
fcppt::either::object< Failure, Success >::object ( Success const &  )
explicit

◆ object() [3/4]

template<typename Failure , typename Success >
fcppt::either::object< Failure, Success >::object ( Failure &&  )
explicit

◆ object() [4/4]

template<typename Failure , typename Success >
fcppt::either::object< Failure, Success >::object ( Failure const &  )
explicit

Member Function Documentation

◆ get_failure_unsafe() [1/2]

template<typename Failure , typename Success >
Failure& fcppt::either::object< Failure, Success >::get_failure_unsafe ( )

◆ get_failure_unsafe() [2/2]

template<typename Failure , typename Success >
Failure const& fcppt::either::object< Failure, Success >::get_failure_unsafe ( ) const

◆ get_success_unsafe() [1/2]

template<typename Failure , typename Success >
Success& fcppt::either::object< Failure, Success >::get_success_unsafe ( )

◆ get_success_unsafe() [2/2]

template<typename Failure , typename Success >
Success const& fcppt::either::object< Failure, Success >::get_success_unsafe ( ) const

◆ has_failure()

template<typename Failure , typename Success >
bool fcppt::either::object< Failure, Success >::has_failure ( ) const

◆ has_success()

template<typename Failure , typename Success >
bool fcppt::either::object< Failure, Success >::has_success ( ) const