size

size#

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

◆ size() [2/2]

template<>
index64_t stdgpu::size ( void *  array)

Specialization for unknown data type: Finds the size (in bytes) of the given dynamically allocated array.

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