Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::variant< T0_, > Singleton Reference

#include <variant_fwd.hpp>

Inheritance diagram for boost::variant< T0_, >:

Public Types

typedef mpl::transform
< recursive_enabled_types,
unwrap_recursive< mpl::_1 >
>::type 
types
 

Public Member Functions

int which () const BOOST_NOEXCEPT
 
 ~variant () BOOST_NOEXCEPT
 
 variant () BOOST_NOEXCEPT_IF(boost
 
template<typename T >
 variant (const T &operand)
 
template<typename T >
 variant (T &operand)
 
template<class T >
 variant (T &&operand, typename boost::enable_if< boost::is_rvalue_reference< T && > >::type *=0, typename boost::disable_if< boost::is_const< T > >::type *=0)
 
 variant (const variant &operand)
 
 variant (variant &&operand) BOOST_NOEXCEPT_IF(variant_move_noexcept_constructible
 
template<class T >
boost::enable_if_c
< boost::is_rvalue_reference
< T && >::value
&&!boost::is_const< T >::value,
variant & >::type 
operator= (T &&rhs)
 
template<typename T >
variantoperator= (const T &rhs)
 
variantoperator= (const variant &rhs)
 
variantoperator= (variant &&rhs)
 
void swap (variant &rhs)
 
bool empty () const BOOST_NOEXCEPT
 
const boost::typeindex::type_infotype () const
 
template<typename U >
void operator== (const U &) const
 
template<typename U >
void operator< (const U &) const
 
bool operator== (const variant &rhs) const
 
bool operator< (const variant &rhs) const
 
template<typename Visitor >
 BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE (typename Visitor::result_type) apply_visitor(Visitor &visitor)
 
template<typename Visitor >
 BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE (typename Visitor::result_type) apply_visitor(Visitor &visitor) const
 

Friends

class convert_copy_into
 
class convert_move_into
 
template<typename Variant >
class detail::variant::backup_assigner
 
class assigner
 
class move_assigner
 
template<BOOST_VARIANT_ENUM_PARAMS(typename U) >
class variant
 

Member Typedef Documentation

template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
typedef mpl::transform< recursive_enabled_types , unwrap_recursive<mpl::_1> >::type boost::variant< T0_, >::types

Constructor & Destructor Documentation

template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
boost::variant< T0_, >::~variant ( )
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename T >
boost::variant< T0_, >::variant ( const T operand)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename T >
boost::variant< T0_, >::variant ( T operand)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<class T >
boost::variant< T0_, >::variant ( T &&  operand,
typename boost::enable_if< boost::is_rvalue_reference< T && > >::type = 0,
typename boost::disable_if< boost::is_const< T > >::type = 0 
)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
boost::variant< T0_, >::variant ( const variant< T0_, > &  operand)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
boost::variant< T0_, >::variant ( variant< T0_, > &&  operand)
inline

Member Function Documentation

template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename Visitor >
boost::variant< T0_, >::BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE ( typename Visitor::result_type  )
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename Visitor >
boost::variant< T0_, >::BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE ( typename Visitor::result_type  ) const
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
bool boost::variant< T0_, >::empty ( void  ) const
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename U >
void boost::variant< T0_, >::operator< ( const U &  ) const
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
bool boost::variant< T0_, >::operator< ( const variant< T0_, > &  rhs) const
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<class T >
boost::enable_if_c<boost::is_rvalue_reference<T&&>::value && !boost::is_const<T>::value, variant& >::type boost::variant< T0_, >::operator= ( T &&  rhs)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename T >
variant& boost::variant< T0_, >::operator= ( const T rhs)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
variant& boost::variant< T0_, >::operator= ( const variant< T0_, > &  rhs)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
variant& boost::variant< T0_, >::operator= ( variant< T0_, > &&  rhs)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename U >
void boost::variant< T0_, >::operator== ( const U &  ) const
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
bool boost::variant< T0_, >::operator== ( const variant< T0_, > &  rhs) const
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
void boost::variant< T0_, >::swap ( variant< T0_, > &  rhs)
inline
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
const boost::typeindex::type_info& boost::variant< T0_, >::type ( ) const
inline

Friends And Related Function Documentation

template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<BOOST_VARIANT_ENUM_PARAMS(typename U) >
friend class variant
friend
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
friend class assigner
friend
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
friend class convert_copy_into
friend
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
friend class convert_move_into
friend
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
template<typename Variant >
friend class detail::variant::backup_assigner
friend
template<typename T0_, BOOST_VARIANT_ENUM_SHIFTED_PARAMS(typename T) >
friend class move_assigner
friend

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