device_unique_object

device_unique_object#

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

◆ device_unique_object() [2/2]

template<typename T >
template<typename ExecutionPolicy , typename... Args, STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
stdgpu::device_unique_object< T >::device_unique_object ( ExecutionPolicy &&  policy,
Args &&...  args 
)
explicit

Creates an object on the GPU (device)

Template Parameters
ExecutionPolicyThe type of the execution policy
ArgsThe argument types
Parameters
[in]policyThe execution policy used for initialization
[in]argsThe arguments to construct the object