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

#include <block.h>

Public Member Functions

 ReverseRange (Block *rbegin)
 Constructs a range including rbegin and all valid preceding blocks.
 
 ReverseRange (Block *rbegin_inclusive, Block *rend_inclusive)
 Constructs a range of blocks from rbegin to rend, inclusively.
 
ReverseIteratorbegin ()
 
ReverseIteratorend ()
 

Detailed Description

template<typename OffsetType = uintptr_t, size_t kAlign = alignof(OffsetType), bool kCanPoison = false>
class pw::allocator::Block< OffsetType, kAlign, kCanPoison >::ReverseRange

Represents a range of blocks that can be iterated over in the reverse direction.

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

for (auto* block : ReverseRange(last, first)) { ... }
Definition: block.h:537

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