Jolt Physics
A multi core friendly Game Physics Engine
|
STL allocator that wraps around TempAllocator. More...
#include <STLTempAllocator.h>
Classes | |
struct | rebind |
Converting to allocator for other type. More... | |
Public Types | |
using | value_type = T |
using | pointer = T * |
Pointer to type. More... | |
using | const_pointer = const T * |
using | reference = T & |
using | const_reference = const T & |
using | size_type = size_t |
using | difference_type = ptrdiff_t |
Public Member Functions | |
STLTempAllocator (TempAllocator &inAllocator) | |
Constructor. More... | |
template<typename T2 > | |
STLTempAllocator (const STLTempAllocator< T2 > &inRHS) | |
Constructor from other allocator. More... | |
pointer | allocate (size_type inN) |
Allocate memory. More... | |
void | deallocate (pointer inPointer, size_type inN) |
Free memory. More... | |
bool | operator== (const STLTempAllocator< T > &) const |
Allocators are stateless so assumed to be equal. More... | |
bool | operator!= (const STLTempAllocator< T > &) const |
TempAllocator & | GetAllocator () const |
Get our temp allocator. More... | |
STL allocator that wraps around TempAllocator.
using STLTempAllocator< T >::const_pointer = const T * |
using STLTempAllocator< T >::const_reference = const T & |
using STLTempAllocator< T >::difference_type = ptrdiff_t |
using STLTempAllocator< T >::pointer = T * |
Pointer to type.
using STLTempAllocator< T >::reference = T & |
Reference to type. Can be removed in C++20.
using STLTempAllocator< T >::size_type = size_t |
using STLTempAllocator< T >::value_type = T |
|
inline |
Constructor.
|
inlineexplicit |
Constructor from other allocator.
|
inline |
Allocate memory.
|
inline |
Free memory.
|
inline |
Get our temp allocator.
|
inline |
|
inline |
Allocators are stateless so assumed to be equal.