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