Template Class device_allocator< void >

Class Documentation

template<>
class device_allocator<void>

device_allocator<void> is a device memory allocator. This class is a specialization for void.

See

device_ptr

See

http://www.sgi.com/tech/stl/Allocators.html

Public Types

typedef void value_type

Type of element allocated, void.

typedef device_ptr<void> pointer

Pointer to allocation, device_ptr<void>.

typedef device_ptr<const void> const_pointer

const pointer to allocation, device_ptr<const void>.

typedef std::size_t size_type

Type of allocation size, std::size_t.

typedef pointer::difference_type difference_type

Type of allocation difference, pointer::difference_type.

template<typename U>
struct rebind

The rebind metafunction provides the type of a device_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 rebound device_allocator.