Provide operator-- on SortedCellIndexIterator to fix #220

This commit is contained in:
Matthias Koefferlein 2019-01-08 21:53:10 +01:00
parent d2d28bc613
commit 14cb9090ec
1 changed files with 14 additions and 2 deletions

View File

@ -72,13 +72,25 @@ struct SortedCellIndexIterator
SortedCellIndexIterator &operator++()
{
++m_n;
return *this;
return *this;
}
SortedCellIndexIterator &operator+=(size_t n)
{
m_n += n;
return *this;
return *this;
}
SortedCellIndexIterator &operator--()
{
--m_n;
return *this;
}
SortedCellIndexIterator &operator-=(size_t n)
{
m_n -= n;
return *this;
}
bool operator==(const SortedCellIndexIterator &d) const