Merge pull request #222 from KLayout/issue-220

Provide operator-- on SortedCellIndexIterator to fix #220
This commit is contained in:
Matthias Köfferlein 2019-01-09 01:11:37 +01:00 committed by GitHub
commit 077528a5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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