¡@

Home 

c++ Programming Glossary: concat_iterator

Concatenating C++ iterator ranges into a const vector member variable at construction time

http://stackoverflow.com/questions/757153/concatenating-c-iterator-ranges-into-a-const-vector-member-variable-at-constru

for brevity... template typename T1 typename T2 struct concat_iterator public typedef std forward_iterator_tag iterator_category typedef.. typedef value_type pointer typedef value_type reference concat_iterator T1 b1 T1 e1 T2 b2 T2 e2 seq1 b1 seq1end e1 seq2 b2 seq2end e2.. if seq1 seq1end return seq1 else return seq2 bool operator concat_iterator const rhs return seq1 rhs.seq1 seq1end rhs.seq2 seq2 rhs.seq2..