memory
Classes | Typedefs
Allocator storage

Classes

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

Typedefs

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

Typedefs

◆ any_reference_storage

An alias for the reference_storage specialization using type-erasure.

◆ 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.