#include <FXMemoryPool.h>
Working with SIMD data (e.g. FX::Maths::Vector) can need memory aligned data. This custom STL allocator ensures that STL containers only use aligned allocations.
Definition at line 147 of file FXMemoryPool.h.
Public Types | |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T & | reference |
typedef const T & | const_reference |
typedef T | value_type |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
T * | address (T &r) const |
const T * | address (const T &s) const |
size_t | max_size () const |
bool | operator!= (const aligned_allocator &other) const |
bool | operator== (const aligned_allocator &other) const |
void | construct (T *const p, const T &t) const |
void | destroy (T *const p) const |
aligned_allocator () | |
aligned_allocator (const aligned_allocator &) | |
template<typename U> | |
aligned_allocator (const aligned_allocator< U, alignment > &) | |
T * | allocate (const size_t n) const |
void | deallocate (T *p, const size_t n) const |
template<typename U> | |
T * | allocate (const size_t n, const U *) const |
Classes | |
struct | rebind |