size

size#

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

◆ size() [1/2]

template<typename T >
index64_t stdgpu::size ( T *  array)

Finds the size (number of elements) of the given dynamically allocated array.

Template Parameters
TThe type of the array
Parameters
[in]arrayAn array
Returns
The size (number of elements) of the given array
Note
The array must be created by this API, otherwise an assertion is triggered