|
dune-common 2.10
|
Simple range between a begin and an end iterator. More...
#include <dune/common/iteratorrange.hh>
Public Types | |
| typedef Iterator | iterator |
| The iterator belonging to this range. | |
| typedef Iterator | const_iterator |
| The iterator belonging to this range. | |
Public Member Functions | |
| IteratorRange (const Iterator &begin, const Iterator &end) | |
| Constructs an iterator range on [begin,end). | |
| IteratorRange () | |
| Default constructor, relies on iterators being default-constructible. | |
| iterator | begin () const |
| Returns an iterator pointing to the begin of the range. | |
| iterator | end () const |
| Returns an iterator pointing past the end of the range. | |
Simple range between a begin and an end iterator.
IteratorRange is mainly useful as a lightweight adaptor class when adding support for range-based for loops to existing containers that lack a standard begin(), end() pair of member functions.
| Iterator | The type of iterator |
| typedef Iterator Dune::IteratorRange< Iterator >::const_iterator |
The iterator belonging to this range.
This typedef is here mainly for compatibility reasons.
| typedef Iterator Dune::IteratorRange< Iterator >::iterator |
The iterator belonging to this range.
|
inline |
Constructs an iterator range on [begin,end).
|
inline |
Default constructor, relies on iterators being default-constructible.
|
inline |
Returns an iterator pointing to the begin of the range.
|
inline |
Returns an iterator pointing past the end of the range.