add assignment operator to FilteredIterator to allow combination of filtered and argmin

This commit is contained in:
Max Lyon
2020-08-10 10:36:08 +02:00
parent 569a9e50e0
commit 1bd54d47ff

View File

@@ -441,6 +441,13 @@ struct FilteredSmartRangeT : public SmartRangeT<FilteredSmartRangeT<RangeT, Hand
operator++(); operator++();
} }
FilteredIterator& operator=(const FilteredIterator& other)
{
BaseIterator::operator=(other);
end_ = other.end_;
return *this;
}
FilteredIterator& operator++() FilteredIterator& operator++()
{ {
if (BaseIterator::operator==(end_)) // don't go past end if (BaseIterator::operator==(end_)) // don't go past end