LLVM 22.0.0git
|
A pseudo-iterator adaptor that is designed to implement "early increment" style loops. More...
#include "llvm/ADT/STLExtras.h"
Friends | |
bool | operator== (const early_inc_iterator_impl &LHS, const early_inc_iterator_impl &RHS) |
A pseudo-iterator adaptor that is designed to implement "early increment" style loops.
This is not a normal iterator and should almost never be used directly. It is intended primarily to be used with range based for loops and some range algorithms.
The iterator isn't quite an OutputIterator or an InputIterator but somewhere between them. The constraints of these iterators are:
This means you can only dereference the iterator once, and you can only increment it once between dereferences.
Definition at line 578 of file STLExtras.h.
|
inline |
Definition at line 591 of file STLExtras.h.
Referenced by operator++(), and operator==.
|
inline |
Definition at line 594 of file STLExtras.h.
References assert().
|
inline |
Definition at line 603 of file STLExtras.h.
References assert(), and early_inc_iterator_impl().
|
friend |
Definition at line 611 of file STLExtras.h.
References assert(), early_inc_iterator_impl(), LHS, and RHS.