LLVM 20.0.0git
|
Zippy iterator that uses the second iterator for comparisons. More...
#include "llvm/ADT/STLExtras.h"
Zippy iterator that uses the second iterator for comparisons.
For the increment to be safe, the second range has to be the shortest. Returns enumerator_result
on dereference to provide .index()
and .value()
member functions. Note: Because the dereference operator returns enumerator_result
as a value instead of a reference and does not strictly conform to the C++17's definition of forward iterator. However, it satisfies all the forward_iterator requirements that the zip_common
and zippy
depend on and fully conforms to the C++20 definition of forward iterator. This is similar to std::vector<bool>::iterator
that returns bit reference wrappers on dereference.
Definition at line 2252 of file STLExtras.h.
|
inline |
Definition at line 2258 of file STLExtras.h.
References llvm::detail::zip_common< zip_enumerator< Iters... >, EnumeratorTupleType< Iters... >, Iters... >::iterators, and llvm::Other.