initialize a vector from another vector code example Example: initialize a vector with another vector c++ complexity vector<int> vect2(vect1.begin(), vect1.end());