Jolt Physics
A multi core friendly Game Physics Engine
|
STL allocator that forwards to our allocation functions. More...
#include <STLAllocator.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 | |
STLAllocator ()=default | |
Constructor. More... | |
template<typename T2 > | |
STLAllocator (const STLAllocator< T2 > &) | |
Constructor from other allocator. More... | |
pointer | allocate (size_type inN) |
Allocate memory. More... | |
void | deallocate (pointer inPointer, size_type) |
Free memory. More... | |
bool | operator== (const STLAllocator< T > &) const |
Allocators are stateless so assumed to be equal. More... | |
bool | operator!= (const STLAllocator< T > &) const |
STL allocator that forwards to our allocation functions.
using STLAllocator< T >::const_pointer = const T * |
using STLAllocator< T >::const_reference = const T & |
using STLAllocator< T >::difference_type = ptrdiff_t |
using STLAllocator< T >::pointer = T * |
Pointer to type.
using STLAllocator< T >::reference = T & |
Reference to type. Can be removed in C++20.
using STLAllocator< T >::size_type = size_t |
using STLAllocator< T >::value_type = T |
|
inlinedefault |
Constructor.
|
inline |
Constructor from other allocator.
|
inline |
Allocate memory.
|
inline |
Free memory.
|
inline |
|
inline |
Allocators are stateless so assumed to be equal.