![]() |
XTL
0.1
eXtended Template Library
|
The var class implements a minimal type erasure idiom. More...
Collaboration diagram for xtd::var:Data Structures | |
| class | empty |
| class | inner |
| class | inner< xtd::xstring< _ChT > > |
| class | inner_base |
Public Member Functions | |
| var () | |
| Default constructs a var object with an underlying empty object. | |
| var (const var &src) | |
| template<typename _Ty > | |
| var (_Ty src) | |
| template<typename _Ty > | |
| _Ty & | as () |
| template<typename _Ty > | |
| const _Ty & | as () const |
| const std::type_info & | get_type () const |
| bool | is_pod () const |
| template<typename _Ty > | |
| var & | operator= (_Ty src) |
| var & | operator= (const var &src) |
| size_t | size () const |
Data Fields | |
| inner_base::ptr | _inner |
The var class implements a minimal type erasure idiom.
A var is a container-wrapper for arbitrary value types similar to a ~variant~ or ~any~ type.