C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
aligned_union< T0, T1, T2, T3, T4, T5 > Class Template Reference

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.
 
_Mytoperator= (const _Myt &elem)
 Assignment operation.
 
template<class T >
T * safe_cast ()
 Safely convert type of container to a pointer.
 

Detailed Description

template<class T0, class T1, class T2 = null_type, class T3 = null_type, class T4 = null_type, class T5 = null_type>
class aligned_union< T0, T1, T2, T3, T4, T5 >

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.


The documentation for this class was generated from the following file: