![]() |
Radium Engine
1.5.0
|
#include <Core/Containers/AlignedAllocator.hpp>
Public Member Functions | |
T * | address (T &r) const |
const T * | address (const T &s) const |
std::size_t | max_size () const |
bool | operator!= (const AlignedAllocator &other) const |
void | construct (T *const p, const T &t) const |
void | destroy (T *const p) const |
bool | operator== (const AlignedAllocator &) const |
AlignedAllocator (const AlignedAllocator &) | |
template<typename U > | |
AlignedAllocator (const AlignedAllocator< U, Alignment > &) | |
T * | allocate (const std::size_t n) const |
void | deallocate (T *const p, const std::size_t) const |
template<typename U > | |
T * | allocate (const std::size_t n, const U *) const |
Allocator for aligned data. Adapted from https://gist.github.com/donny-dont/1471329 Modified from the Mallocator from Stephan T. Lavavej. http://blogs.msdn.com/b/vcblog/archive/2008/08/28/the-mallocator.aspx July 2021: use aligned_alloc (c++11) instead of platform-dependant mm_malloc
Definition at line 24 of file AlignedAllocator.hpp.