diff --git a/src/SMDS/SMDS_StdIterator.hxx b/src/SMDS/SMDS_StdIterator.hxx index f14b7e3fb..ee4352e27 100644 --- a/src/SMDS/SMDS_StdIterator.hxx +++ b/src/SMDS/SMDS_StdIterator.hxx @@ -60,11 +60,21 @@ public: operator++() { _value = _piterator->more() ? VALUE( _piterator->next()) : 0; return *this; } + // Step to the next one + _Self + operator++(int) + { _Self res = *this; _value = _piterator->more() ? VALUE( _piterator->next()) : 0; return res; } + // Test of end bool operator!=(const _Self& __x) const { return !_EqualVALUE( _value, __x._value); } + // Test of equality + bool + operator==(const _Self& __x) const + { return _EqualVALUE( _value, __x._value); } + }; #endif