Category: C++

Copy a vector in C++

In this post, we will see how to copy a vector in C++. Copying a vector includes constructing a new vector with a copy of each of the elements in original vector, and in the same order.

Concatenate two vectors in C++

In this post, we will discuss how to join or concatenate two vectors in C++. The resulting vector will contain all of the element of first vector followed by all elements of the second vector in same order.