WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
Allocator storage

Classes

class  wpi::memory::allocator_storage< StoragePolicy, Mutex >
 A RawAllocator that stores another allocator. More...
 
struct  wpi::memory::any_allocator
 Tag type that enables type-erasure in reference_storage. More...
 
class  wpi::memory::direct_storage< RawAllocator >
 A StoragePolicy that stores the allocator directly. More...
 
class  wpi::memory::allocator_adapter< RawAllocator >
 An alias template for allocator_storage using the direct_storage policy without a mutex. More...
 
class  wpi::memory::thread_safe_allocator< RawAllocator, Mutex >
 An alias template for allocator_storage using the direct_storage policy with a mutex. More...
 
struct  wpi::memory::is_shared_allocator< RawAllocator >
 Specifies whether or not a RawAllocator has shared semantics. More...
 
class  wpi::memory::reference_storage< RawAllocator >
 A StoragePolicy that stores a reference to an allocator. More...
 
class  wpi::memory::reference_storage< any_allocator >
 Specialization of the class template reference_storage that is type-erased. More...
 
class  wpi::memory::allocator_reference< RawAllocator >
 An alias template for allocator_storage using the reference_storage policy. More...
 

Typedefs

using wpi::memory::any_reference_storage = reference_storage<any_allocator>
 An alias for the reference_storage specialization using type-erasure.
 
using wpi::memory::any_allocator_reference = allocator_storage<any_reference_storage, no_mutex>
 An alias for allocator_storage using the any_reference_storage.
 

Detailed Description

Typedef Documentation

◆ any_allocator_reference

An alias for allocator_storage using the any_reference_storage.

It will store a reference to any RawAllocator. This is the same as passing the tag type any_allocator to the alias allocator_reference. Wrap the allocator in a thread_safe_allocator if you want thread safety.

◆ any_reference_storage

An alias for the reference_storage specialization using type-erasure.