Skip to content

Rose::make_range

Convenience function for iterating over sub‐ranges.

Synopsis

Declared in <src/midend/astProcessing/plugin.h>

template<class T>
iterator_range<T>
make_range(
    T x,
    T y);

Description

This provides a bit of syntactic sugar to make using sub‐ranges in for loops a bit easier. Analogous to std::make_pair().

Return Value

A range adaptor for a pair of iterators.

Created with MrDocs