LLVM 20.0.0git
|
A pseudo-iterator adaptor that is designed to implement "early increment" style loops. More...
#include "llvm/ADT/STLExtras.h"
Public Attributes | |
decltype(*std::declval< WrappedIteratorT >() | operator* )() |
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 601 of file STLExtras.h.
|
inline |
Definition at line 614 of file STLExtras.h.
|
inline |
Definition at line 626 of file STLExtras.h.
References assert().
|
friend |
Definition at line 634 of file STLExtras.h.
|
inline |
Definition at line 617 of file STLExtras.h.