Thrust
|
#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_vector & | operator= (const host_vector &v) |
__host__ host_vector & | operator= (host_vector &&v) |
template<typename OtherT , typename OtherAlloc > | |
__host__ | host_vector (const host_vector< OtherT, OtherAlloc > &v) |
template<typename OtherT , typename OtherAlloc > | |
__host__ host_vector & | operator= (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_vector & | operator= (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_vector & | operator= (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) |
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.