LIBINT  2.1.0-stable
Classes | Public Types | Public Member Functions | List of all members
libint2::any Struct Reference

emulates boost::any More...

#include <any.h>

Public Types

template<class T >
using StorageType = typename std::decay< T >::type
 

Public Member Functions

 any (const any &that)
 
 any (any &&that)
 
template<typename U >
 any (U &&value)
 
anyoperator= (const any &a)
 
template<typename U >
anyoperator= (U a)
 
anyoperator= (any &&a)
 
 operator bool () const
 
template<class U >
bool is () const
 
template<class U >
StorageType< U > & as ()
 
template<class U >
const StorageType< U > & as () const
 
template<class U >
 operator U ()
 

Detailed Description

emulates boost::any

Member Function Documentation

template<class U >
StorageType<U>& libint2::any::as ( )
inline
Note
if NDEBUG is not defined, will throw std::bad_cast if U is not the stored type
template<class U >
const StorageType<U>& libint2::any::as ( ) const
inline
Note
if NDEBUG is not defined, will throw std::bad_cast if U is not the stored type

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