thrust::device_delete
Defined in thrust/device_delete.h
- 
template<typename T>
 inline void thrust::device_delete(thrust::device_ptr<T> ptr, const size_t n = 1)
- device_deletedeletes a- device_ptrallocated with- device_new.- See also - See also - device_new - Parameters
- ptr – The - device_ptrto delete, assumed to have been allocated with- device_new.
- n – The number of objects to destroy at - ptr. Defaults to- 1similar to- device_new.