Appending a C-array to a vector in reverse order in C++98/03 without a for-loop – stackoverflow.com

Its pretty straightforward to append a C-array to a vector (in C++ 98/03) like so: std::vector<int> vec; const int array[5] = { 1 , 2 , 3 , 4 , 5}; vec.insert( vec.end() , array , array + 5 ); ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Appending a C-array to a vector in reverse order in C++98/03 without a for-loop – stackoverflow.com"