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. | |
using | const_pointer = const T * |
using | reference = T & |
using | const_reference = const T & |
using | size_type = size_t |
using | difference_type = ptrdiff_t |
using | is_always_equal = std::false_type |
The allocator is not stateless (depends on the temp allocator) | |
Public Member Functions | |
STLTempAllocator (TempAllocator &inAllocator) | |
Constructor. | |
template<typename T2 > | |
STLTempAllocator (const STLTempAllocator< T2 > &inRHS) | |
Constructor from other allocator. | |
pointer | allocate (size_type inN) |
Allocate memory. | |
void | deallocate (pointer inPointer, size_type inN) |
Free memory. | |
bool | operator== (const STLTempAllocator< T > &inRHS) const |
Allocators are not-stateless, assume if allocator address matches that the allocators are the same. | |
bool | operator!= (const STLTempAllocator< T > &inRHS) const |
TempAllocator & | GetAllocator () const |
Get our temp allocator. | |
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 >::is_always_equal = std::false_type |
The allocator is not stateless (depends on the temp allocator)
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 not-stateless, assume if allocator address matches that the allocators are the same.