WPILibC++ 2025.1.1
|
Similar to allocator_deallocator but calls the destructors of the object. 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_deleter () noexcept=default | |
allocator_deleter (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()) |
Similar to allocator_deallocator but calls the destructors of the object.
Otherwise behaves the same.
using wpi::memory::allocator_deleter< Type, RawAllocator >::allocator_type = typename allocator_reference<RawAllocator>::allocator_type |
using wpi::memory::allocator_deleter< Type, RawAllocator >::value_type = Type |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
deallocate_node
(pointer, sizeof(value_type), alignof(value_type)) on the referenced allocator object for the deallocation.