|
Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
|
Classes | |
| class | fixed_block_pool |
| class | pool_allocator |
| Thread-local pool manager for value_container allocations. More... | |
| struct | pool_allocator_stats |
| Extended pool statistics with hit/miss tracking. More... | |
| struct | pool_size_class |
| Size class thresholds for pool allocation. More... | |
Functions | |
| template<typename T , typename... Args> | |
| T * | pool_allocate (Args &&... args) noexcept |
| Allocate and construct an object using pool allocation. | |
| template<typename T > | |
| void | pool_deallocate (T *ptr) noexcept |
| Destroy and deallocate an object allocated with pool_allocate. | |
| template<typename T > | |
| constexpr bool | is_pool_allocatable () noexcept |
| Check if a type is suitable for pool allocation. | |
| constexpr int | get_size_class (std::size_t size) noexcept |
| Get the size class for a given size. | |
|
inlineconstexprnoexcept |
Get the size class for a given size.
| size | Size in bytes |
Definition at line 232 of file pool_allocator.h.
References kcenon::container::internal::pool_size_class::medium_threshold, and kcenon::container::internal::pool_size_class::small_threshold.
|
constexprnoexcept |
Check if a type is suitable for pool allocation.
| T | Type to check |
Definition at line 223 of file pool_allocator.h.
References kcenon::container::internal::pool_size_class::medium_threshold.
|
noexcept |
Allocate and construct an object using pool allocation.
| T | Type to construct |
| Args | Constructor argument types |
| args | Constructor arguments |
Definition at line 185 of file pool_allocator.h.
References kcenon::container::internal::pool_allocator::allocate(), kcenon::container::internal::pool_allocator::deallocate(), and kcenon::container::internal::pool_allocator::instance().

|
noexcept |
Destroy and deallocate an object allocated with pool_allocate.
| T | Type of object |
| ptr | Pointer to object |
Definition at line 208 of file pool_allocator.h.
References kcenon::container::internal::pool_allocator::deallocate(), and kcenon::container::internal::pool_allocator::instance().
