¡@

Home 

c++ Programming Glossary: flattening_iterator

Flattening iterator

http://stackoverflow.com/questions/3623082/flattening-iterator

int s.insert 1 2 3 4 5 s.insert 6 7 8 s.insert 9 10 11 12 flattening_iterator unordered_set vector int iterator it ... end ... for it end.. you have to skip over them. This means that advancing the flattening_iterator by one position may actually advance the iterator into the outer.. container by more than one position. Because of this the flattening_iterator needs to know where the end of the outer range is so that it..