adding elements in a vector syntax code example Example: appending a vector in vector a.insert(a.end(), b.begin(), b.end());