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