Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::any Class Reference

#include <any.hpp>

Inheritance diagram for boost::any:

Public Member Functions

 any () BOOST_NOEXCEPT
 
template<typename ValueType >
 any (const ValueType &value)
 
 any (const any &other)
 
 any (any &&other) BOOST_NOEXCEPT
 
template<typename ValueType >
 any (ValueType &&value, typename boost::disable_if< boost::is_same< any &, ValueType > >::type *=0, typename boost::disable_if< boost::is_const< ValueType > >::type *=0)
 
 ~any () BOOST_NOEXCEPT
 
anyswap (any &rhs) BOOST_NOEXCEPT
 
anyoperator= (const any &rhs)
 
anyoperator= (any &&rhs) BOOST_NOEXCEPT
 
template<class ValueType >
anyoperator= (ValueType &&rhs)
 
bool empty () const BOOST_NOEXCEPT
 
void clear () BOOST_NOEXCEPT
 
const boost::typeindex::type_infotype () const BOOST_NOEXCEPT
 

Friends

template<typename ValueType >
ValueType * any_cast (any *) BOOST_NOEXCEPT
 
template<typename ValueType >
ValueType * unsafe_any_cast (any *) BOOST_NOEXCEPT
 

Constructor & Destructor Documentation

boost::any::any ( )
inline

Referenced by clear(), and operator=().

template<typename ValueType >
boost::any::any ( const ValueType &  value)
inline
boost::any::any ( const any other)
inline
boost::any::any ( any &&  other)
inline
template<typename ValueType >
boost::any::any ( ValueType &&  value,
typename boost::disable_if< boost::is_same< any &, ValueType > >::type = 0,
typename boost::disable_if< boost::is_const< ValueType > >::type = 0 
)
inline
boost::any::~any ( )
inline

Member Function Documentation

void boost::any::clear ( )
inline

References any().

any& boost::any::operator= ( const any rhs)
inline

References any().

any& boost::any::operator= ( any &&  rhs)
inline

References any().

template<class ValueType >
any& boost::any::operator= ( ValueType &&  rhs)
inline

References any().

any& boost::any::swap ( any rhs)
inline

References boost::swap().

const boost::typeindex::type_info& boost::any::type ( ) const
inline

Friends And Related Function Documentation

template<typename ValueType >
ValueType* any_cast ( any operand)
friend

Referenced by boost::any_cast().

template<typename ValueType >
ValueType* unsafe_any_cast ( any operand)
friend

Referenced by boost::unsafe_any_cast().


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