Classes | Public Types | Public Member Functions | List of all members
thrust::device_new_allocator< T > Class Template Reference

#include <thrust/device_new_allocator.h>


struct  rebind

Public Types

typedef T value_type
typedef device_ptr< T > pointer
typedef device_ptr< const T > const_pointer
typedef device_reference< T > reference
typedef device_reference< const T > const_reference
typedef std::size_t size_type
typedef pointer::difference_type difference_type

Public Member Functions

__host__ __device__ device_new_allocator ()
__host__ __device__ ~device_new_allocator ()
__host__ __device__ device_new_allocator (device_new_allocator const &)
template<typename U >
__host__ __device__ device_new_allocator (device_new_allocator< U > const &)
__host__ __device__ pointer address (reference r)
__host__ __device__ const_pointer address (const_reference r)
__host__ pointer allocate (size_type cnt, const_pointer=const_pointer(static_cast< T *>(0)))
__host__ void deallocate (pointer p, size_type cnt)
__host__ __device__ size_type max_size () const
__host__ __device__ bool operator== (device_new_allocator const &)
__host__ __device__ bool operator!= (device_new_allocator const &a)

Detailed Description

template<typename T>
class thrust::device_new_allocator< T >

device_new_allocator is a device memory allocator that employs the device_new function for allocation.

See also

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