Appending a C-array to a vector in reverse order in C++98/03 without a for-loop – stackoverflow.com 07:11 Posted by Unknown No Comments 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 Unknown
0 Comment to "Appending a C-array to a vector in reverse order in C++98/03 without a for-loop – stackoverflow.com"
Post a Comment