WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
tracking.hpp File Reference

Class wpi::memory::tracked_allocator and related classes and functions. More...

#include "detail/utility.hpp"
#include "allocator_traits.hpp"
#include "memory_arena.hpp"

Go to the source code of this file.

Classes

class  wpi::memory::detail::deeply_tracked_block_allocator< Tracker, BlockAllocator >
 
class  wpi::memory::tracked_block_allocator< Tracker, BlockOrRawAllocator >
 A BlockAllocator adapter that tracks another allocator using a tracker. More...
 
class  wpi::memory::tracked_allocator< Tracker, RawAllocator >
 A RawAllocator adapter that tracks another allocator using a tracker. More...
 
struct  wpi::memory::detail::is_block_or_raw_allocator_impl< T, Block >
 
struct  wpi::memory::detail::is_block_or_raw_allocator_impl< T, false >
 
struct  wpi::memory::detail::is_block_or_raw_allocator< T >
 
struct  wpi::memory::detail::rebind_block_allocator< RawAllocator< Args... >, OtherBlockAllocator >
 
class  wpi::memory::deeply_tracked_allocator< Tracker, RawAllocator >
 A tracked_allocator that has rebound any BlockAllocator to the corresponding deeply_tracked_block_allocator. More...
 

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::memory
 Memory namespace.
 
namespace  wpi::memory::detail
 

Typedefs

template<class Tracker , class BlockOrRawAllocator >
using wpi::memory::deeply_tracked_block_allocator
 Similar to tracked_block_allocator, but shares the tracker with the higher level allocator.
 
template<class Tracker , class RawAllocator >
using wpi::memory::detail::deeply_tracked_block_allocator_for
 
template<class Tracker , class RawAllocator >
using wpi::memory::detail::rebound_allocator
 

Functions

template<class Allocator , class Tracker >
auto wpi::memory::detail::set_tracker (int, Allocator &allocator, Tracker *tracker) noexcept -> decltype(allocator.get_allocator().set_tracker(tracker))
 
template<class Allocator , class Tracker >
void wpi::memory::detail::set_tracker (short, Allocator &, Tracker *) noexcept
 

Detailed Description

Class wpi::memory::tracked_allocator and related classes and functions.