◆ allocate() [1/2]

template<typename T >
T* boost::simd::allocate ( std::size_t  size)

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

Template Parameters
TType of data to be allocated
Parameters
sizeNumber of elements to allocate
Returns
A pointer to the allocated space.