Distributed Ranges
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
dr::sp::device_allocator< T, Alignment > Class Template Reference

Classes

struct  rebind
 

Public Types

using value_type = T
 
using pointer = device_ptr< T >
 
using const_pointer = device_ptr< T >
 
using reference = device_ref< T >
 
using const_reference = device_ref< const T >
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using is_always_equal = std::false_type
 

Public Member Functions

template<typename U >
 device_allocator (const device_allocator< U, Alignment > &other) noexcept
 
 device_allocator (const sycl::queue &q) noexcept
 
 device_allocator (const sycl::context &ctxt, const sycl::device &dev) noexcept
 
 device_allocator (const device_allocator &)=default
 
device_allocatoroperator= (const device_allocator &)=default
 
pointer allocate (std::size_t size)
 
void deallocate (pointer ptr, std::size_t n)
 
bool operator== (const device_allocator &) const =default
 
bool operator!= (const device_allocator &) const =default
 
sycl::device get_device () const noexcept
 
sycl::context get_context () const noexcept
 

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