Skip to content

Commit b353e17

Browse files
committed
added ColumnIterator::operator==
1 parent cb5bb05 commit b353e17

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

capdAlg/include/capd/vectalg/ColumnVector.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
// distributed under the terms of the GNU General Public License.
2222
// Consult http://capd.ii.uj.edu.pl/ for details.
2323

24-
#ifndef CAPD_VECTALG_COLUMNVECTOR_H
25-
#define CAPD_VECTALG_COLUMNVECTOR_H
24+
#ifndef CAPD_VECTALG_COLUMNVECTOR_H
25+
#define CAPD_VECTALG_COLUMNVECTOR_H
2626

2727
#include <ostream>
2828
#include "capd/vectalg/Vector.h"
@@ -83,6 +83,11 @@ class ColumnIterator{
8383
return m_Pointer!=second.m_Pointer;
8484
}
8585

86+
inline bool operator==(const ColumnIterator& second)
87+
{
88+
return m_Pointer==second.m_Pointer;
89+
}
90+
8691
inline ScalarType& operator*()
8792
{
8893
return *m_Pointer;
@@ -454,6 +459,6 @@ std::string cppReprezentation(const ColumnVector<Scalar,rows> & A, const std::st
454459

455460
}} // namespace capd::vectalg
456461

457-
#endif // CAPD_VECTALG_COLUMNVECTOR_H
462+
#endif // CAPD_VECTALG_COLUMNVECTOR_H
458463

459464
/// @}

0 commit comments

Comments
 (0)