Itasca C++ Interface
Loading...
Searching...
No Matches
List of all members
itasca::conditional_container< condition, T > Class Template Reference

A container, which either stores its value as a value or a pointer depending on the condition. More...

#include <type_selector.h>

Inheritance diagram for itasca::conditional_container< condition, T >:
itasca::type_selector< condition, T, T * >

Additional Inherited Members

- Static Public Attributes inherited from itasca::type_selector< condition, T, T * >
static const bool result
 

Detailed Description

template<bool condition, typename T>
class itasca::conditional_container< condition, T >

A container, which either stores its value as a value or a pointer depending on the condition.

This is a more specific version of the same trick used by type_selector, which abstracts away whether a type is a pointer or a value. Primary user is VUserType<T>, where it enables types larger than the data buffer by automatically storing them as a pointer.


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