![]() |
WPILibC++ 2025.3.2
|
A StoragePolicy that stores the allocator directly. More...
#include <wpi/memory/allocator_storage.hpp>
Public Types | |
| using | allocator_type = typename allocator_traits<RawAllocator>::allocator_type |
Public Member Functions | |
| direct_storage ()=default | |
| direct_storage (allocator_type &&allocator) noexcept | |
| direct_storage (direct_storage &&other) noexcept | |
| direct_storage & | operator= (direct_storage &&other) noexcept |
| allocator_type & | get_allocator () noexcept |
| const allocator_type & | get_allocator () const noexcept |
Protected Member Functions | |
| ~direct_storage () noexcept=default | |
| bool | is_composable () const noexcept |
A StoragePolicy that stores the allocator directly.
It embeds the allocator inside it, i.e. moving the storage policy will move the allocator.
| using wpi::memory::direct_storage< RawAllocator >::allocator_type = typename allocator_traits<RawAllocator>::allocator_type |
|
default |
RawAllcoator must be default constructible.
|
inlinenoexcept |
|
inlinenoexcept |
direct_storage object. This will move the stored allocator.
|
protecteddefaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
const) reference to the stored allocator.
|
inlineprotectednoexcept |
|
inlinenoexcept |