Pigweed
Loading...
Searching...
No Matches
pw::allocator::Block< OffsetType, kAlign, kCanPoison >::Range Class Referencefinal

#include <block.h>

Public Member Functions

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

Detailed Description

template<typename OffsetType = uintptr_t, size_t kAlign = alignof(OffsetType), bool kCanPoison = false>
class pw::allocator::Block< OffsetType, kAlign, kCanPoison >::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: block.h:513

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