CPPuddle
Loading...
Searching...
No Matches
recycler::detail::sycl_device_default_allocator< T > Struct Template Reference

Underlying allocator for SYCL device memory (using the sycl::default_selector{}). More...

#include <sycl_underlying_allocators.hpp>

Public Types

using value_type = T

Public Member Functions

 sycl_device_default_allocator () noexcept=default
template<class U>
 sycl_device_default_allocator (sycl_device_default_allocator< U > const &) noexcept
T * allocate (std::size_t n)
void deallocate (T *p, std::size_t n)

Detailed Description

template<class T>
struct recycler::detail::sycl_device_default_allocator< T >

Underlying allocator for SYCL device memory (using the sycl::default_selector{}).

Member Typedef Documentation

◆ value_type

template<class T>
using cppuddle::memory_recycling::detail::sycl_device_default_allocator< T >::value_type = T

Constructor & Destructor Documentation

◆ sycl_device_default_allocator() [1/2]

template<class T>
cppuddle::memory_recycling::detail::sycl_device_default_allocator< T >::sycl_device_default_allocator ( )
defaultnoexcept

◆ sycl_device_default_allocator() [2/2]

template<class T>
template<class U>
cppuddle::memory_recycling::detail::sycl_device_default_allocator< T >::sycl_device_default_allocator ( sycl_device_default_allocator< U > const & )
inlineexplicitnoexcept

Member Function Documentation

◆ allocate()

template<class T>
T * cppuddle::memory_recycling::detail::sycl_device_default_allocator< T >::allocate ( std::size_t n)
inline

◆ deallocate()

template<class T>
void cppuddle::memory_recycling::detail::sycl_device_default_allocator< T >::deallocate ( T * p,
std::size_t n )
inline

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