CPPuddle
|
Recycles not only allocations but also the contents of a buffer. More...
#include <buffer_management.hpp>
Public Types | |
using | value_type = T |
using | underlying_allocator_type = Host_Allocator |
Public Member Functions | |
aggressive_recycle_allocator () noexcept | |
aggressive_recycle_allocator (size_t hint) noexcept | |
aggressive_recycle_allocator (aggressive_recycle_allocator< T, Host_Allocator > const &) noexcept | |
T * | allocate (std::size_t n) |
void | deallocate (T *p, std::size_t n) |
template<typename... Args> | |
void | construct (T *p, Args... args) noexcept |
void | destroy (T *p) |
Public Attributes | |
const std::optional< size_t > | dealloc_hint |
const std::optional< size_t > | device_id |
Recycles not only allocations but also the contents of a buffer.
using cppuddle::memory_recycling::detail::aggressive_recycle_allocator< T, Host_Allocator >::underlying_allocator_type = Host_Allocator |
using cppuddle::memory_recycling::detail::aggressive_recycle_allocator< T, Host_Allocator >::value_type = T |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
const std::optional<size_t> cppuddle::memory_recycling::detail::aggressive_recycle_allocator< T, Host_Allocator >::dealloc_hint |
const std::optional<size_t> cppuddle::memory_recycling::detail::aggressive_recycle_allocator< T, Host_Allocator >::device_id |