#include <alloc_type.hpp>
Public Member Functions | |
| FORCEINLINE | operator T * () |
| Gets a pointer to the data stored in this wrapper. | |
| FORCEINLINE T * | operator-> () |
| Gets a pointer to the data stored in this wrapper. | |
| FORCEINLINE T * | EndOf () |
| Gets a pointer to the last data element 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 20 of file alloc_type.hpp.
| FORCEINLINE SmallStackSafeStackAlloc< T, length >::operator T * | ( | ) | [inline] |
Gets a pointer to the data stored in this wrapper.
Definition at line 44 of file alloc_type.hpp.
References SmallStackSafeStackAlloc< T, length >::data.
| FORCEINLINE T* SmallStackSafeStackAlloc< T, length >::operator-> | ( | ) | [inline] |
Gets a pointer to the data stored in this wrapper.
Definition at line 53 of file alloc_type.hpp.
References SmallStackSafeStackAlloc< T, length >::data.
| FORCEINLINE T* SmallStackSafeStackAlloc< T, length >::EndOf | ( | ) | [inline] |
Gets a pointer to the last data element stored in this wrapper.
Definition at line 63 of file alloc_type.hpp.
References SmallStackSafeStackAlloc< T, length >::data, and endof.
1.5.6