WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::memory::bucket_allocator< PoolType, ImplAllocator > Class Template Reference

An alias for memory_pool_collection using the identity_buckets policy and a PoolType defaulting to node_pool. More...

#include <wpi/memory/memory_pool_collection.hpp>

Inheritance diagram for wpi::memory::bucket_allocator< PoolType, ImplAllocator >:
wpi::memory::memory_pool_collection< node_pool, identity_buckets, default_allocator >

Additional Inherited Members

- Public Types inherited from wpi::memory::memory_pool_collection< node_pool, identity_buckets, default_allocator >
using allocator_type
 
using pool_type
 
using bucket_distribution
 
- Public Member Functions inherited from wpi::memory::memory_pool_collection< node_pool, identity_buckets, default_allocator >
 memory_pool_collection (std::size_t max_node_size, std::size_t block_size, Args &&... args)
 
 ~memory_pool_collection () noexcept=default
 
void * allocate_node (std::size_t node_size)
 
void * try_allocate_node (std::size_t node_size) noexcept
 
void * allocate_array (std::size_t count, std::size_t node_size)
 
void * try_allocate_array (std::size_t count, std::size_t node_size) noexcept
 
void deallocate_node (void *ptr, std::size_t node_size) noexcept
 
bool try_deallocate_node (void *ptr, std::size_t node_size) noexcept
 
void deallocate_array (void *ptr, std::size_t count, std::size_t node_size) noexcept
 
bool try_deallocate_array (void *ptr, std::size_t count, std::size_t node_size) noexcept
 
void reserve (std::size_t node_size, std::size_t capacity)
 
std::size_t max_node_size () const noexcept
 
std::size_t pool_capacity_left (std::size_t node_size) const noexcept
 
std::size_t capacity_left () const noexcept
 
std::size_t next_capacity () const noexcept
 
allocator_typeget_allocator () noexcept
 
 memory_pool_collection (memory_pool_collection &&other) noexcept
 
memory_pool_collectionoperator= (memory_pool_collection &&other) noexcept
 

Detailed Description

template<class PoolType = node_pool, class ImplAllocator = default_allocator>
class wpi::memory::bucket_allocator< PoolType, ImplAllocator >

An alias for memory_pool_collection using the identity_buckets policy and a PoolType defaulting to node_pool.


The documentation for this class was generated from the following file: