device_begin

device_begin#

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

◆ device_begin() [3/4]

template<typename T , typename Allocator = safe_device_allocator<T>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
device_ptr< T > stdgpu::vector< T, Allocator >::device_begin ( ExecutionPolicy &&  policy)

Creates a pointer to the begin of the device container.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
Returns
A pointer to the begin of the object