thrust

◆ device_delete()

template<typename T >
void thrust::device_delete ( thrust::device_ptr< T >  ptr,
const size_t  n = 1 
)
inline

device_delete deletes a device_ptr allocated with device_new.

Parameters
ptrThe device_ptr to delete, assumed to have been allocated with device_new.
nThe number of objects to destroy at ptr. Defaults to 1 similar to device_new.
See also
device_ptr
device_new

Referenced by thrust::device_new_allocator< T >::deallocate().