construct_at

construct_at#

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

◆ construct_at()

template<typename T , typename... Args>
STDGPU_HOST_DEVICE T * stdgpu::construct_at ( T *  p,
Args &&...  args 
)

Destroys the value at the given pointer.

Template Parameters
TThe value type
ArgsThe argument types
Parameters
[in]pA pointer to the value to construct
[in]argsThe arguments to construct the value
Returns
A pointer to the constructed value