stl compatible allocator to use with with 16 byte aligned types More...
#include <Memory.h>
Classes | |
struct | rebind |
Public Types | |
typedef const T * | const_pointer |
typedef const T & | const_reference |
typedef std::ptrdiff_t | difference_type |
typedef T * | pointer |
typedef T & | reference |
typedef std::size_t | size_type |
typedef T | value_type |
Public Member Functions | |
const_pointer | address (const_reference value) const |
pointer | address (reference value) const |
template<class U > | |
aligned_allocator (const aligned_allocator< U > &) throw () | |
aligned_allocator (const aligned_allocator &) throw () | |
aligned_allocator () throw () | |
pointer | allocate (size_type num, const void *hint=0) |
void | construct (pointer p, const T &value) |
void | deallocate (pointer p, size_type) |
void | destroy (pointer p) |
size_type | max_size () const throw () |
bool | operator!= (const aligned_allocator< T > &other) const |
bool | operator== (const aligned_allocator< T > &other) const |
~aligned_allocator () throw () |
stl compatible allocator to use with with 16 byte aligned types
Example:
// Matrix4f requires 16 bytes alignment: std::map< int, Matrix4f, std::less<int>, aligned_allocator<Matrix4f> > my_map_mat4; // Vector3f does not require 16 bytes alignment, no need to use Eigen's allocator: std::map< int, Vector3f > my_map_vec3;
Definition at line 340 of file Memory.h.
typedef const T* aligned_allocator< T >::const_pointer |
typedef const T& aligned_allocator< T >::const_reference |
typedef std::ptrdiff_t aligned_allocator< T >::difference_type |
typedef T* aligned_allocator< T >::pointer |
typedef T& aligned_allocator< T >::reference |
typedef std::size_t aligned_allocator< T >::size_type |
typedef T aligned_allocator< T >::value_type |
aligned_allocator< T >::aligned_allocator | ( | ) | throw () [inline] |
aligned_allocator< T >::aligned_allocator | ( | const aligned_allocator< T > & | ) | throw () [inline] |
aligned_allocator< T >::aligned_allocator | ( | const aligned_allocator< U > & | ) | throw () [inline] |
aligned_allocator< T >::~aligned_allocator | ( | ) | throw () [inline] |
const_pointer aligned_allocator< T >::address | ( | const_reference | value | ) | const [inline] |
pointer aligned_allocator< T >::address | ( | reference | value | ) | const [inline] |
pointer aligned_allocator< T >::allocate | ( | size_type | num, | |
const void * | hint = 0 | |||
) | [inline] |
void aligned_allocator< T >::construct | ( | pointer | p, | |
const T & | value | |||
) | [inline] |
void aligned_allocator< T >::deallocate | ( | pointer | p, | |
size_type | ||||
) | [inline] |
void aligned_allocator< T >::destroy | ( | pointer | p | ) | [inline] |
size_type aligned_allocator< T >::max_size | ( | ) | const throw () [inline] |
bool aligned_allocator< T >::operator!= | ( | const aligned_allocator< T > & | other | ) | const [inline] |
bool aligned_allocator< T >::operator== | ( | const aligned_allocator< T > & | other | ) | const [inline] |