std::vector<int> b = a;
will this creates b as a copy (new object with same contents) of vector a or as a reference to it?
that create b as a new vector being a copy, so b.append(1);
does not change a
solved Std::vectors – copying vs creating a reference