Generic container type used to hold arbitrary objects. More...
#include <Any.hpp>
Public Member Functions | |
Any () | |
Constructs an empty Any instance. More... | |
template<typename T > | |
Any (const T &t) | |
Constructs an Any instance holding a copy of t. More... | |
Any (const Any &rhs) | |
Copy constructs an Any instance. More... | |
Any & | operator= (const Any &rhs) |
Assigns an Any instance. More... | |
template<typename T > | |
T & | get () |
Type-safe retrieval of the contained value. Throws an exception if T does not match the type of the contained type. More... | |
Generic container type used to hold arbitrary objects.
RCF::Any::Any | ( | ) |
Constructs an empty Any instance.
RCF::Any::Any | ( | const T & | t | ) |
Constructs an Any instance holding a copy of t.
T& RCF::Any::get | ( | ) |
Type-safe retrieval of the contained value. Throws an exception if T does not match the type of the contained type.