construct

construct#

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

◆ construct()

template<typename Allocator >
template<typename T , class... Args>
static STDGPU_HOST_DEVICE void stdgpu::allocator_traits< Allocator >::construct ( Allocator &  a,
T *  p,
Args &&...  args 
)
static

Constructs an object value at the given pointer.

Template Parameters
TThe value type
ArgsThe argument types
Parameters
[in]aThe allocator to use
[in]pA pointer to the value
[in]argsThe arguments to construct the value