/**
* Comparison. True, if both accessors are equal.
*/
+ template <class OtherAccessor>
bool
- operator==(const MatrixIterator &) const;
+ operator==(const MatrixIterator<OtherAccessor> &) const;
/**
* Inverse of <tt>==</tt>.
*/
+ template <class OtherAccessor>
bool
- operator!=(const MatrixIterator &) const;
+ operator!=(const MatrixIterator<OtherAccessor> &) const;
/**
* Comparison operator. Result is true if either the first row number is
template <class ACCESSOR>
+template <class OtherAccessor>
inline bool
-MatrixIterator<ACCESSOR>::operator==(const MatrixIterator &other) const
+MatrixIterator<ACCESSOR>::operator==(
+ const MatrixIterator<OtherAccessor> &other) const
{
return (accessor == other.accessor);
}
template <class ACCESSOR>
+template <class OtherAccessor>
inline bool
-MatrixIterator<ACCESSOR>::operator!=(const MatrixIterator &other) const
+MatrixIterator<ACCESSOR>::operator!=(
+ const MatrixIterator<OtherAccessor> &other) const
{
return !(*this == other);
}