ATLAS Offline Software
|
std::vector
with extra alignment.
More...
#include "boost/align/aligned_allocator.hpp"
#include <vector>
Go to the source code of this file.
Namespaces | |
CxxUtils | |
Typedefs | |
template<class T , size_t Alignment = 1> | |
using | CxxUtils::aligned_vector = std::vector< T, boost::alignment::aligned_allocator< T, Alignment > > |
A std::vector with extra alignment. More... | |
template<class T > | |
using | CxxUtils::vec_aligned_vector = aligned_vector< T, 64 > |
A std::vector with alignment sufficient for any vector instructions on this platform. More... | |
std::vector
with extra alignment.
std::vector<T>
is aligned appropriately for T
. However, there are some times when one would like to force a larger alignment, for example if the vector is being used to hold data to be processed with vector instructions. aligned_vector
defined here is a std::vector
with higher alignment. vec_aligned_vector
is a vector that should be sufficiently aligned for any vector instructions on this platform. Definition in file aligned_vector.h.