Thrust

◆ device_vector() [15/15]

template<typename T, typename Alloc = thrust::device_allocator<T>>
template<typename InputIterator >
thrust::device_vector< T, Alloc >::device_vector ( InputIterator  first,
InputIterator  last,
const Alloc &  alloc 
)

This constructor builds a device_vector from a range.

Parameters
firstThe beginning of the range.
lastThe end of the range.
allocThe allocator to use by this device_vector.

References thrust::swap().