Problem
I want to iterate over multiple iterators as if there were one iterator.
Idea
Defining a wrapper which combines multiple iterators to one iterator.
(Or is there already another solution?)
Properties
- read-only and forward is sufficient
- type should be generic
- (but all iterators should have same type)
Code
// Constructor which defines the first iterator
ChainIterator(/* iterator */);
ChainIterator(/* single object*/);
~ChainIterator();
// Appends another iterator
void chain(/* iterator */);
void chain(/* single object*/);
/** TODO: Iterator stuff
* begin()
* end()
* operator++()
* operator==()
* operator!=()
* operator*
*/