Template Class device_allocator¶
Defined in File device_allocator.h
Inheritance Relationships¶
Base Type¶
public thrust::device_new_allocator< T >(Template Class device_new_allocator)
Class Documentation¶
-
template<typename
T>
classdevice_allocator: public thrust::device_new_allocator<T>¶ device_allocatoris a device memory allocator. This implementation inherits fromdevice_new_allocator.Public Functions
-
__host__ __device__ thrust::device_allocator::device_allocator() No-argument constructor has no effect.
-
__host__ __device__ thrust::device_allocator::device_allocator(device_allocator const &) Copy constructor has no effect.
-
template<typename U>__host__ __device__ thrust::device_allocator::device_allocator(device_allocator < U > const &) Constructor from other
allocatorhas no effect.
-
template<typename
U>
structrebind¶ The
rebindmetafunction provides the type of adevice_allocatorinstantiated with another type.- Template Parameters
U: The other type to use for instantiation.
Public Types
-
template<>
typedef device_allocator<U>other¶ The typedef
othergives the type of the rebounddevice_allocator.
-