#include <rangelib/indexed_range.hpp>

| R | The adapted range type | |
| I | The integer type |
Public Types | |
Member Types | |
| typedef R | adapted_range_type |
| The of the adapted range. | |
| typedef I | index_type |
| The index type. | |
| typedef R::range_tag_type | range_tag_type |
| The range tag type. | |
| typedef R::value_type | value_type |
| The value type. | |
| typedef R::const_reference | const_reference |
| The non-mutating (const) type. | |
| typedef indexed_range< R, I > | class_type |
| The current instantiation of the type. | |
Public Member Functions | |
Construction | |
| indexed_range (R r, index_type index=0) | |
| Constructor. | |
Notional Range methods | |
| bool | is_open () const |
| Indicates whether the range is open. | |
| const_reference | current () const |
| Returns the current value in the range. | |
| class_type & | advance () |
| Advances the current position in the range. | |
Iterable Range methods | |
| index_type | index () const |
| typedef R adapted_range_type |
| typedef I index_type |
The index type.
| typedef R::range_tag_type range_tag_type |
The range tag type.
| typedef R::value_type value_type |
The value type.
| typedef R::const_reference const_reference |
| typedef indexed_range<R, I> class_type |
| indexed_range | ( | R | r, | |
| index_type | index = 0 | |||
| ) | [inline, explicit] |
Constructor.
| r | The range | |
| index | The initial index of the range |
| bool is_open | ( | ) | const [inline] |
Indicates whether the range is open.
| const_reference current | ( | ) | const [inline] |
| class_type& advance | ( | ) | [inline] |
1.5.6