Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2005-06-29 16:26:56


currently it is not possible to call index1() or index2() of a matrix
iterator if the iterator is at the end. But is this really necessary?

Why shouldn't I be able to access iterator1.index2() if this iterator is
at the end of the column? The column index is independent of the
current position. Most (all?) iterators store this index anyway.

The implementation is quite easy: We have to drop the

  *this != (*this) ().find1 (0, (*this) ().size1 (), j_), bad_index ()