Aggregatify ConcatView

This commit is contained in:
Maxime Coste 2019-11-10 12:04:44 +11:00
parent e74fba9289
commit f119fb9524

View File

@ -356,13 +356,9 @@ struct ConcatView
RangeIt2 m_it2;
};
ConcatView(const Range1& range1, const Range2& range2)
: m_range1(range1), m_range2(range2) {}
Iterator begin() const { return {m_range1.begin(), m_range1.end(), m_range2.begin()}; }
Iterator end() const { return {m_range1.end(), m_range1.end(), m_range2.end()}; }
private:
Range1 m_range1;
Range2 m_range2;
};