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_allocator
is 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
allocator
has no effect.
-
template<typename
U
>
structrebind
¶ The
rebind
metafunction provides the type of adevice_allocator
instantiated with another type.- Template Parameters
U
: The other type to use for instantiation.
Public Types
-
template<>
typedef device_allocator<U>other
¶ The typedef
other
gives the type of the rebounddevice_allocator
.
-