![]() |
|
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>
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.