WPILibC++ 2025.1.1
|
A deleter class that deallocates the memory through a specified RawAllocator. More...
#include <wpi/memory/deleter.hpp>
Public Types | |
using | allocator_type = typename allocator_reference<RawAllocator>::allocator_type |
using | value_type = Type |
Public Member Functions | |
allocator_deallocator () noexcept=default | |
allocator_deallocator (allocator_reference< RawAllocator > alloc) noexcept | |
void | operator() (value_type *pointer) noexcept |
auto | get_allocator () const noexcept -> decltype(std::declval< allocator_reference< allocator_type > >().get_allocator()) |
A deleter class that deallocates the memory through a specified RawAllocator.
It deallocates memory for a specified type but does not call its destructors.
using wpi::memory::allocator_deallocator< Type, RawAllocator >::allocator_type = typename allocator_reference<RawAllocator>::allocator_type |
using wpi::memory::allocator_deallocator< Type, RawAllocator >::value_type = Type |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
deallocate_node
(pointer, sizeof(value_type), alignof(value_type)) on the referenced allocator object.