|
pbr-cpp-memory-pool 1.1.2
Fixed-block-size O(1) memory pool — C++17 with an ANSI C public surface
|
Type-safe C++17 pool vending T-typed blocks — ADR-0017.
More...
#include <it/d4np/memorypool/memory_pool.hpp>#include <cstddef>#include <new>#include <optional>#include <type_traits>#include <utility>Go to the source code of this file.
Classes | |
| class | it::d4np::memorypool::TypedPool< T > |
Move-only, RAII, type-safe pool of fixed T-sized slots. More... | |
Type-safe C++17 pool vending T-typed blocks — ADR-0017.
TypedPool<T> composes the untyped Pool (ADR-0010) and derives a spec-§2.1-conformant block_size from T at compile time, so the ADR-0009 §2 preconditions are satisfied by construction rather than by caller diligence. The exception policy is inherited verbatim from ADR-0016: allocate / construct throw std::bad_alloc, try_allocate is noexcept and reports failure in-band.
Header-only by necessity (class template); adds zero object code to the static library and zero per-pool metadata (ADR-0015 unaffected).
Definition in file typed_pool.hpp.