mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
added sanity checks in ConditionalIterator
This commit is contained in:
@@ -191,6 +191,12 @@ namespace BlackMisc
|
||||
bool operator >=(const ConditionalIterator &other) const { return m_iterator >= other.m_iterator; }
|
||||
//! @}
|
||||
|
||||
//! \private
|
||||
void checkEnd(const ConditionalIterator &other) // debugging
|
||||
{
|
||||
Q_ASSERT(m_end == other.m_end && m_end == other.m_iterator);
|
||||
}
|
||||
|
||||
private:
|
||||
I m_iterator;
|
||||
I m_end;
|
||||
|
||||
Reference in New Issue
Block a user