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

#include <thrust/device_malloc_allocator.h>

Classes

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_malloc_allocator ()
 
__host__ __device__ ~device_malloc_allocator ()
 
__host__ __device__ device_malloc_allocator (device_malloc_allocator const &)
 
template<typename U >
__host__ __device__ device_malloc_allocator (device_malloc_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)
 
size_type max_size () const
 
__host__ __device__ bool operator== (device_malloc_allocator const &) const
 
__host__ __device__ bool operator!= (device_malloc_allocator const &a) const
 

Detailed Description

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

device_malloc_allocator is a device memory allocator that employs the device_malloc function for allocation.

device_malloc_allocator is deprecated in favor of thrust::mr memory resource-based allocators.

See also
device_malloc
device_ptr
device_allocator
http://www.sgi.com/tech/stl/Allocators.html

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