/**
* Postfix increment.
*/
- const_iterator &operator++ (int);
+ const_iterator operator++ (int);
/**
* Dereferencing operator.
}
+template <typename number>
+inline
+typename FullMatrix<number>::const_iterator
+FullMatrix<number>::const_iterator::operator++ (int)
+{
+ const typename FullMatrix<number>::const_iterator current = *this;
+ ++(*this);
+
+ return current;
+}
+
+
template <typename number>
inline
const typename FullMatrix<number>::Accessor &
{
FullMatrix<double> A(3,3);
+ // test prefix operator
const FullMatrix<double>::const_iterator k = A.begin(),
j = ++A.begin();
AssertThrow (k == k, ExcInternalError());
AssertThrow (!(k != k), ExcInternalError());
+ // test postfix operator
+ FullMatrix<double>::const_iterator l = A.begin();
+ FullMatrix<double>::const_iterator m = l++;
+
+ AssertThrow(m == k, ExcInternalError());
+ AssertThrow(l > m, ExcInternalError());
+ AssertThrow(l->column() == k->column() + 1, ExcInternalError());
+
+
deallog << "OK" << std::endl;
}