allocate

allocate#

stdgpu: stdgpu::safe_host_allocator::allocate
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ allocate()

template<typename T >
T * stdgpu::safe_host_allocator< T >::allocate ( index64_t  n)

Allocates a memory block of the given size.

Parameters
[in]nThe number of allocated elements
Returns
A pointer to the allocated memory block