Eigen  5.0.1-dev
 
Loading...
Searching...
No Matches
List of all members
Eigen::aligned_allocator< T > Class Template Reference

#include <Eigen/src/Core/util/Memory.h>

Detailed Description

template<class T>
class Eigen::aligned_allocator< T >

STL compatible allocator to use with types requiring a non-standard alignment.

The memory is aligned as for dynamically aligned matrix/array types such as MatrixXd. By default, it will thus provide at least 16 bytes alignment and more in following cases:

This can be controlled using the EIGEN_MAX_ALIGN_BYTES macro as documented there .

Example:

// Matrix4f requires 16 bytes alignment:
std::map< int, Matrix4f, std::less<int>,
// Vector3f does not require 16 bytes alignment, no need to use Eigen's allocator:
std::map< int, Vector3f > my_map_vec3;
STL compatible allocator to use with types requiring a non-standard alignment.
Definition Memory.h:877
See also
Using STL Containers with Eigen.

The documentation for this class was generated from the following file: