Template Function thrust::device_delete¶
Function Documentation¶
-
template<typename
T
>
voidthrust
::
device_delete
(thrust::device_ptr<T> ptr, const size_t n = 1)¶ device_delete
deletes adevice_ptr
allocated withdevice_new
.- See
- See
- Parameters
ptr
: Thedevice_ptr
to delete, assumed to have been allocated withdevice_new
.n
: The number of objects to destroy atptr
. Defaults to1
similar todevice_new
.