|
pbr-cpp-memory-pool 1.1.2
Fixed-block-size O(1) memory pool — C++17 with an ANSI C public surface
|
Lightweight read-only range over a pool's free list (ADR-0019 §3). More...
#include <free_list_iterator.hpp>
Public Member Functions | |
| FreeListView (const memory_pool_t *pool) noexcept | |
View the free list of pool (a C handle), or an empty range if NULL. | |
| FreeListView (Pool &pool) noexcept | |
View the free list of pool — ergonomic overload for the C++ wrapper. | |
| FreeListIterator | begin () const noexcept |
| FreeListIterator | end () const noexcept |
Lightweight read-only range over a pool's free list (ADR-0019 §3).
The entry point for the diagnostic walk:
Holds only a const memory_pool_t*; constructing it neither allocates nor walks. The view does not own the pool and must not out-live it.
Definition at line 121 of file free_list_iterator.hpp.
|
inlineexplicitnoexcept |
View the free list of pool (a C handle), or an empty range if NULL.
Definition at line 124 of file free_list_iterator.hpp.
|
inlineexplicitnoexcept |
View the free list of pool — ergonomic overload for the C++ wrapper.
Definition at line 127 of file free_list_iterator.hpp.
|
inlinenoexcept |
Definition at line 130 of file free_list_iterator.hpp.
|
inlinenoexcept |
current_ is what marks the end (equality compares only the current slot), so this equals a default-constructed FreeListIterator; carrying pool_ keeps the two iterators of a range mutually consistent. Definition at line 140 of file free_list_iterator.hpp.