Wraps a pair of iterators, providing member begin() and end() functions that return those iterators. More...
#include <juce_Enumerate.h>
Public Member Functions | |
constexpr | IteratorPair (Begin bIn, End eIn) |
Constructs a pair from a begin and end iterator. | |
constexpr auto | begin () const |
Returns the begin iterator. | |
constexpr auto | end () const |
Returns the end iterator. | |
Wraps a pair of iterators, providing member begin() and end() functions that return those iterators.
This is useful in situations where you have an iterator pair, but want to use that pair somewhere that requires an iterable range, such as in a ranged-for loop.
|
constexpr |
Constructs a pair from a begin and end iterator.
Instead of calling this directly, use makeRange().
|
constexpr |
Returns the begin iterator.
|
constexpr |
Returns the end iterator.