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;
Public Types | |
typedef const T * | const_pointer |
typedef const T & | const_reference |
typedef ptrdiff_t | difference_type |
typedef T * | pointer |
typedef T & | reference |
typedef 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 () | |
pointer | allocate (size_type num, const_pointer *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 () |