WPILibC++ 2025.1.1
|
A tracked_allocator that has rebound any BlockAllocator to the corresponding deeply_tracked_block_allocator. More...
#include <wpi/memory/tracking.hpp>
Related Symbols | |
(Note that these are not member symbols.) | |
template<class RawAllocator , class Tracker , typename... Args> | |
auto | make_deeply_tracked_allocator (Tracker t, Args &&... args) -> deeply_tracked_allocator< Tracker, RawAllocator > |
Related Symbols inherited from wpi::memory::tracked_allocator< Tracker, detail::rebound_allocator< Tracker, RawAllocator > > | |
auto | make_tracked_allocator (Tracker t, RawAllocator &&alloc) -> tracked_allocator< Tracker, typename std::decay< RawAllocator >::type > |
Additional Inherited Members | |
Public Types inherited from wpi::memory::tracked_allocator< Tracker, detail::rebound_allocator< Tracker, RawAllocator > > | |
using | allocator_type |
using | tracker |
using | is_stateful |
Public Member Functions inherited from wpi::memory::tracked_allocator< Tracker, detail::rebound_allocator< Tracker, RawAllocator > > | |
~tracked_allocator () noexcept | |
void * | allocate_node (std::size_t size, std::size_t alignment) |
void * | try_allocate_node (std::size_t size, std::size_t alignment) noexcept |
void * | allocate_array (std::size_t count, std::size_t size, std::size_t alignment) |
void * | try_allocate_array (std::size_t count, std::size_t size, std::size_t alignment) noexcept |
void | deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
bool | try_deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
void | deallocate_array (void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept |
bool | try_deallocate_array (void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept |
tracked_allocator (tracker t={}) noexcept | |
tracked_allocator (tracker t, allocator_type &&allocator) noexcept | |
tracked_allocator (tracked_allocator &&other) noexcept | |
tracked_allocator & | operator= (tracked_allocator &&other) noexcept |
std::size_t | max_node_size () const |
std::size_t | max_array_size () const |
std::size_t | max_alignment () const |
allocator_type & | get_allocator () noexcept |
const allocator_type & | get_allocator () const noexcept |
tracker & | get_tracker () noexcept |
const tracker & | get_tracker () const noexcept |
A tracked_allocator that has rebound any BlockAllocator to the corresponding deeply_tracked_block_allocator.
This makes it a deeply tracked allocator.
It replaces each template argument of the given RawAllocator for which is_block_allocator or is_raw_allocator is true
with a deeply_tracked_block_allocator.
|
related |