![]() |
WPILibC++ 2025.3.2
|
A Segregatable that allocates until a maximum size. More...
#include <wpi/memory/segregator.hpp>
Public Types | |
| using | allocator_type = typename allocator_traits<RawAllocator>::allocator_type |
Public Member Functions | |
| threshold_segregatable (std::size_t max_size, allocator_type alloc=allocator_type()) | |
| bool | use_allocate_node (std::size_t size, std::size_t) noexcept |
| bool | use_allocate_array (std::size_t count, std::size_t size, std::size_t) noexcept |
| allocator_type & | get_allocator () noexcept |
| const allocator_type & | get_allocator () const noexcept |
A Segregatable that allocates until a maximum size.
| using wpi::memory::threshold_segregatable< RawAllocator >::allocator_type = typename allocator_traits<RawAllocator>::allocator_type |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
true if count * size is less then or equal to the maximum size, false otherwise. true means that the allocator will be used for the allocation.
|
inlinenoexcept |
true if size is less then or equal to the maximum size, false otherwise. true means that the allocator will be used for the allocation.