Convenience function for iterating over sub-ranges.
Declared in <llvm/ADT/iterator_range.h>
template<class T>
iterator_range<T>
make_range(
T x,
T y);
This provides a bit of syntactic sugar to make using sub-ranges in for loops a bit easier. Analogous to std::make_pair().
An iterator_range covering []x, y).
| Name | Description |
|---|---|
| x | Iterator to the first element. |
| y | Iterator past the last element. |