◆ 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
sizeNumber of elements to allocate
archSelected SIMD ISA mark-up
A pointer to the allocated space.