How does a std::vector initialize its self when the following code is invoked
std::vector
std::vector original; std::vecto
std::vector and most other standard library containers store elements by value. The elements are copied on insertion or when the container is copied. std::string also maintains its own copy of the data, as far as your usage of it is concerned.
std::string