[Dune] Reverse iterators in FieldVector
Oliver Sander
sander at mi.fu-berlin.de
Thu Nov 26 18:12:12 CET 2009
Dear Dune!
When working on FS 438 I found the following behavior of FieldVector:
The method rbegin() returns a bidirectional iterator to the last element
of the vector. To get to the second-to-last element you can call
operator--.
However, the standard stl behavior is to return a reverse iterator which
needs to have operator++ called to get to the second-to-last element.
Is this nonstandard behavior intended or is it a bug that needs fixing?
yrs,
Oliver
--
************************************************************************
* Oliver Sander ** email: sander at mi.fu-berlin.de *
* Freie Universität Berlin ** phone: + 49 (30) 838 75348 *
* Institut für Mathematik ** URL : page.mi.fu-berlin.de/~sander *
* Arnimallee 6 ** -------------------------------------*
* 14195 Berlin, Germany ** Member of MATHEON (www.matheon.de) *
************************************************************************
More information about the Dune
mailing list