say you have two stl vectors that you want to concatenate into a larger vector without using for loops
std::vector <unsigned int> a (4, 5) ; std::vector <unsigned int> b (6, 25) ; std::vector <unsigned int> ab ; ab = a ; ab.insert(ab.begin(), b.begin(), b.end() ) ;
Advertisements
Leave a Reply