STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::runtime::any Class Reference

any can hold an object of any type. The object can be retrieved only by casting to the correct type. More...

Public Member Functions

template<typename T >
 any (T &&t)
 
 any (any &&other)
 
 any (any const &other)
 
template<typename T >
anyoperator= (T &&other)
 
anyoperator= (any other)
 
anyswap (any &other)
 
bool empty (void) const noexcept
 
std::type_info const & type (void) const noexcept
 
template<typename T >
T const * try_get (void) const noexcept
 
template<typename T >
T * try_get (void) noexcept
 
template<typename T >
T const & get (void) const noexcept
 
template<typename T >
T & get (void) noexcept
 

Detailed Description

any can hold an object of any type. The object can be retrieved only by casting to the correct type.

Provides the functionality of boost::any without dynamic_casts or checks when in non-debug mode.


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