#include <var_variant.hpp>
Public Member Functions | |
| Base * | get () |
| Retrieves the value stored in the variant. | |
| const Base * | get () const |
| Retrieves the value stored in the variant (const version). | |
| Base * | operator-> () |
| Access the value stored in the variant. | |
| const Base * | operator-> () const |
| Access the value stored in the variant (const version). | |
| Base & | operator* () |
| Access the value stored in the variant. | |
| const Base & | operator* () const |
| Access the value stored in the variant (const version). | |
| template<typename T > | |
| variant (const T &t) | |
| Assigns a value to the variant. | |
| ~variant () | |
| Destroys the contents of the variant. | |
| variant (const variant &other) | |
| Copies the other variant into the object. | |
| variant & | operator= (const variant &other) |
| Assigns from another variant. | |
| template<typename T > | |
| variant & | operator= (const T &other) |
| Assigns from another value. | |
| Base | The base class of all types stored in the variant. | |
| Bytes | The size in bytes used to store the data. |
Definition at line 13 of file var_variant.hpp.
| dynamic::internal::variant< Base, Bytes >::variant | ( | const T & | t | ) | [inline] |
Assigns a value to the variant.
T must fit into the variant. T must be a subtype of Base T should have a virtual destructor (not validated) T must have a copy_to method
Definition at line 61 of file var_variant.hpp.
1.5.7.1