Pigweed
 
Loading...
Searching...
No Matches
pw::allocator::IterableBlock< Derived >::Range Class Referencefinal

#include <iterable.h>

Public Member Functions

constexpr Range (Derived *begin)
 Constructs a range including begin and all valid following blocks.
 
constexpr Range (Derived *begin_inclusive, Derived *end_inclusive)
 Constructs a range of blocks from begin to end, inclusively.
 
constexpr Iteratorbegin ()
 
constexpr Iteratorend ()
 

Detailed Description

template<typename Derived>
class pw::allocator::IterableBlock< Derived >::Range

Represents a range of blocks that can be iterated over.

The typical usage of this class is in a range-based for-loop, e.g.

for (auto* block : Range(first, last)) { ... }
Definition: iterable.h:74

Allocating or freeing blocks invalidates the range.


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