A class that can hold any other object. Similar to boost::any but includes also a from_string method. More...
#include <any.h>
Data Structures | |
| class | any_concept |
| class | any_conceptImpl |
Public Member Functions | |
| any () | |
| Creates an empty element. | |
| any (const any &other) | |
| template<class T> | |
| any (const T &t) | |
| Creates an element holding the value t. | |
| bool | empty () const |
| Tests, whether the element is empty or not. | |
| any & | operator= (const any &other) |
| template<class to_value> | |
| to_value const * | to_ptr () const |
| const std::type_info & | type () const |
| ~any () | |
Private Attributes | |
| any_concept * | pimpl |
Friends | |
| void | from_string (const std::string &s, any &a) |
A class that can hold any other object. Similar to boost::any but includes also a from_string method.
|
inline |
Creates an empty element.
|
inline |
Creates an element holding the value t.
|
inline |
|
inline |
|
inline |
Tests, whether the element is empty or not.
|
inline |
|
inline |
|
friend |
|
private |