◆ allocate() [2/2]

template<typename T , typename Arch >
T* boost::simd::allocate ( std::size_t  size,
Arch const &  arch 
)

Allocates space for a memory block of size elements of type T with an alignment compatible with the selected SIMD instructions set arch.

Template Parameters
TType of data to be allocated
Parameters
sizeNumber of elements to allocate
archSelected SIMD ISA mark-up
Returns
A pointer to the allocated space.