mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 03:21:34 +02:00
Provide operator-- on SortedCellIndexIterator to fix #220
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user