#1496 make IntersectionIterator compatible with forward iterator concept
Metadata
| Property | Value |
|---|---|
| Reported by | Tobias Malkmus (tomalk@mathematik.uni-freiburg.de) |
| Reported at | Sep 26, 2014 12:29 |
| Type | Feature Request |
| Version | 2.3 |
| Operating System | Unspecified / All |
| Last edited by | Steffen Müthing (steffen.muething@iwr.uni-heidelberg.de) |
| Last edited at | Mar 11, 2015 13:24 |
| Closed by | Steffen Müthing (steffen.muething@iwr.uni-heidelberg.de) |
| Closed at | Mar 11, 2015 13:24 |
| Closed in version | Unknown |
| Resolution | Fixed |
| Comment | Fixed in 366d1bc. |
Description
For the entity iterator it was decided to be compatible with the std::forward_iterator.
It would be nice to have the same for the IntersectionIterator.
I attached two patches which does introduce this functionality.
The first one specializes the iterator traits for the IntersectionIterator.
With this patch counting the number of intersections can be done within this one line:
std::difference( gv.ibegin(entity), gv.iend( entity ) )
The second one introduces the post-increment operator and the default constructor.