Loading...
Searching...
No Matches
Vdf_FixedSizeHolder< T, Size > Class Template Reference

Vdf_FixedSizeHolder holds an object of type T of any size, but the sizeof(Vdf_FixedSizeHolder<T>) is always exactly Size. More...

#include <fixedSizeHolder.h>

Detailed Description

template<class T, size_t Size>
class Vdf_FixedSizeHolder< T, Size >

Vdf_FixedSizeHolder holds an object of type T of any size, but the sizeof(Vdf_FixedSizeHolder<T>) is always exactly Size.

If T's size is less than or equal to Size, it is stored directly in member data. If instead it is greater than Size, it is stored on the heap.

The remote storage policy allows mutation of the object held in the Vdf_FixedSizeHolder, but does this by deep-copying the held object whenever the holder is copied.

Definition at line 106 of file fixedSizeHolder.h.


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