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

#include <thrust/host_vector.h>

Public Member Functions

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

Detailed Description

template<typename T, typename Alloc = std::allocator<T>>
class thrust::host_vector< T, Alloc >

A host_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 host_vector may vary dynamically; memory management is automatic. The memory associated with a host_vector resides in memory accessible to hosts.

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

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