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. | |
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::true_type |
The allocator is stateless. | |
using | propagate_on_container_move_assignment = std::true_type |
Allocator supports moving. | |
Public Member Functions | |
STLAlignedAllocator ()=default | |
Constructor. | |
template<typename T2 > | |
STLAlignedAllocator (const STLAlignedAllocator< T2, N > &) | |
Constructor from other allocator. | |
pointer | allocate (size_type inN) |
Allocate memory. | |
void | deallocate (pointer inPointer, size_type) |
Free memory. | |
bool | operator== (const STLAlignedAllocator< T, N > &) const |
Allocators are stateless so assumed to be equal. | |
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 >::is_always_equal = std::true_type |
The allocator is stateless.
using STLAlignedAllocator< T, N >::pointer = T * |
Pointer to type.
using STLAlignedAllocator< T, N >::propagate_on_container_move_assignment = std::true_type |
Allocator supports moving.
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.