safe_managed_allocator< T >#
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
stdgpu::safe_managed_allocator< T >
Detailed Description
template<typename T>
struct stdgpu::safe_managed_allocator< T >
struct stdgpu::safe_managed_allocator< T >
An allocator for managed memory.
- Template Parameters
-
T A type
Public Types | |
using | value_type = T |
Public Member Functions | |
safe_managed_allocator () noexcept=default | |
safe_managed_allocator (const safe_managed_allocator &) noexcept=default | |
template<typename U > | |
safe_managed_allocator (const safe_managed_allocator< U > &other) noexcept | |
safe_managed_allocator (safe_managed_allocator &&) noexcept=default | |
~safe_managed_allocator () noexcept=default | |
T * | allocate (index64_t n) |
void | deallocate (T *p, index64_t n) |
safe_managed_allocator & | operator= (const safe_managed_allocator &) noexcept=default |
safe_managed_allocator & | operator= (safe_managed_allocator &&) noexcept=default |
Static Public Attributes | |
static constexpr dynamic_memory_type | memory_type |
Generated by 1.9.6