C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
union-container for instance of type from a specific set of types. More...
#include <generic_utility.h>
Public Member Functions | |
int | which () const |
Get a index of the current type which is occupied container. | |
bool | empty () const |
Check whether the container is empty. | |
template<class _Vis > | |
void | accept (const _Vis &vis) const |
Apply the functor (visitor) | |
template<class _Vis > | |
void | accept (const _Vis &vis) |
Apply the functor (visitor) | |
void | clear () |
Make an empty container. | |
_Myt & | operator= (const _Myt &elem) |
Assignment operation. | |
template<class T > | |
T * | safe_cast () |
Safely convert type of container to a pointer. | |
union-container for instance of type from a specific set of types.
Allows to create a type which takes values ??from a set of heterogeneous types.