// Initializing vector with values vector<int> vect1{1, 2, 3, 4}; // Declaring new vector vector<int> vect2; // Using assignment operator to copy one // vector to other vect2 = vect1;