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 > | |
| any & | operator= (T &&other) |
| any & | operator= (any other) |
| any & | swap (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 |
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.
1.8.13