◆ allocator

template<typename T , std::size_t Cardinal = 0ULL>
using boost::simd::allocator = typedef boost::alignment::aligned_allocator<T,preferred_alignment<T,Cardinal>::value>

Convenience alias defining a standard compliant allocator returning memory which alignment is compatible with the storage of boot::simd::pack<T,Cardinal> or the actual alignment of T if T is not an arithmetic type.

Template Parameters
TType of data to be allocated
CardinalCardinal of the pack to be used in the allocated memory. By default, Cardinal is equal to the expected cardinal for a pack<T>.