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

#include <thrust/host_vector.h>

Inherits vector_base< T, Alloc >.

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_vectoroperator= (const 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 device_vector< OtherT, OtherAlloc > &v)
 
template<typename OtherT , typename OtherAlloc >
__host__ host_vectoroperator= (const device_vector< 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 the memory space of the host associated with a parallel device.

See also
http://www.sgi.com/tech/stl/Vector.html
device_vector

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