Thrust
Public Member Functions | List of all members
thrust::device_vector< T, Alloc > Class Template Reference

#include <thrust/device_vector.h>

Public Member Functions

 device_vector (void)
 
 device_vector (const Alloc &alloc)
 
 ~device_vector (void)
 
 device_vector (size_type n)
 
 device_vector (size_type n, const Alloc &alloc)
 
 device_vector (size_type n, const value_type &value)
 
 device_vector (size_type n, const value_type &value, const Alloc &alloc)
 
 device_vector (const device_vector &v)
 
 device_vector (const device_vector &v, const Alloc &alloc)
 
 device_vector (device_vector &&v)
 
 device_vector (device_vector &&v, const Alloc &alloc)
 
device_vectoroperator= (const device_vector &v)
 
device_vectoroperator= (device_vector &&v)
 
template<typename OtherT , typename OtherAlloc >
 device_vector (const device_vector< OtherT, OtherAlloc > &v)
 
template<typename OtherT , typename OtherAlloc >
device_vectoroperator= (const device_vector< OtherT, OtherAlloc > &v)
 
template<typename OtherT , typename OtherAlloc >
 device_vector (const std::vector< OtherT, OtherAlloc > &v)
 
template<typename OtherT , typename OtherAlloc >
device_vectoroperator= (const std::vector< OtherT, OtherAlloc > &v)
 
template<typename OtherT , typename OtherAlloc >
 device_vector (const detail::vector_base< OtherT, OtherAlloc > &v)
 
template<typename OtherT , typename OtherAlloc >
device_vectoroperator= (const detail::vector_base< OtherT, OtherAlloc > &v)
 
template<typename InputIterator >
 device_vector (InputIterator first, InputIterator last)
 
template<typename InputIterator >
 device_vector (InputIterator first, InputIterator last, const Alloc &alloc)
 

Detailed Description

template<typename T, typename Alloc = thrust::device_allocator<T>>
class thrust::device_vector< T, Alloc >

A device_vector is a container that supports random access to elements, constant time removal of elements at the end, and linear time insertion and removal of elements at the beginning or in the middle. The number of elements in a device_vector may vary dynamically; memory management is automatic. The memory associated with a device_vector resides in the memory accessible to devices.

See also
https://en.cppreference.com/w/cpp/container/vector
device_allocator
host_vector
universal_vector

The documentation for this class was generated from the following file: