![]() |
WPILibC++ 2025.3.2
|
Specialization of allocator_deleter for array types. 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 | |
allocator_deleter (allocator_reference< RawAllocator > alloc, std::size_t size) noexcept | |
void | operator() (value_type *pointer) noexcept |
auto | get_allocator () const noexcept -> decltype(std::declval< allocator_reference< allocator_type > >().get_allocator()) |
std::size_t | array_size () const noexcept |
Specialization of allocator_deleter for array types.
Otherwise the same behavior.
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 |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
0
if it was created by the default constructor.
|
inlinenoexcept |
|
inlinenoexcept |
deallocate_array
(pointer, size, sizeof(value_type), alignof(value_type)) on the referenced allocator object with the size given in the constructor for the deallocation.