destroy

destroy#

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

◆ destroy()

template<typename Allocator >
template<typename T >
static STDGPU_HOST_DEVICE void stdgpu::allocator_traits< Allocator >::destroy ( Allocator &  a,
T *  p 
)
static

Destroys the object value at the given pointer.

Template Parameters
TThe value type
Parameters
[in]aThe allocator to use
[in]pA pointer to the value