stdgpu: stdgpu::safe_device_allocator< T > — stdgpu Latest documentation (original) (raw)

safe_device_allocator< T >#

stdgpu: stdgpu::safe_device_allocator< T >

stdgpu::safe_device_allocator< T >

Detailed Description

template
struct stdgpu::safe_device_allocator< T >

An allocator for device memory.

Template Parameters

Public Member Functions
safe_device_allocator () noexcept=default
safe_device_allocator (const safe_device_allocator &) noexcept=default
template
safe_device_allocator (const safe_device_allocator< U > &other) noexcept
safe_device_allocator (safe_device_allocator &&) noexcept=default
~safe_device_allocator () noexcept=default
T * allocate (index64_t n)
void deallocate (T *p, index64_t n)
safe_device_allocator & operator= (const safe_device_allocator &) noexcept=default
safe_device_allocator & operator= (safe_device_allocator &&) noexcept=default

Generated by doxygen 1.9.6