WPILibC++ 2025.1.1
|
Similar to allocator_polymorphic_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 = BaseType |
Public Member Functions | |
template<typename T > | |
allocator_polymorphic_deleter (allocator_deleter< T, RawAllocator > deleter) | |
void | operator() (value_type *pointer) noexcept |
auto | get_allocator () const noexcept -> decltype(std::declval< allocator_reference< allocator_type > >().get_allocator()) |
Similar to allocator_polymorphic_deallocator but calls the destructors of the object.
Otherwise behaves the same.
using wpi::memory::allocator_polymorphic_deleter< BaseType, RawAllocator >::allocator_type = typename allocator_reference<RawAllocator>::allocator_type |
using wpi::memory::allocator_polymorphic_deleter< BaseType, RawAllocator >::value_type = BaseType |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
deallocate_node(pointer, size, alignment)
on the referenced allocator object, where size
and alignment
are the values of the type it was created with.