#include <alloc_func.hpp>
Public Member Functions | |
operator T * () | |
Gets a pointer to the data stored in this wrapper. | |
Data Fields | |
T | data [length] |
Storing the data on the stack. |
So when it is possible a stack allocation is made, otherwise a heap allocation is made and this is freed once the struct goes out of scope.
T | the type to make the allocation for | |
length | the amount of items to allocate |
Definition at line 103 of file alloc_func.hpp.
SmallStackSafeStackAlloc< T, length >::operator T * | ( | ) | [inline] |
Gets a pointer to the data stored in this wrapper.
Definition at line 121 of file alloc_func.hpp.
References SmallStackSafeStackAlloc< T, length >::data.