#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
int main()
{
std::vector<std::string> one{"cat", "dog", "newt"};
std::vector<std::string> two;
std::move(begin(one), end(one), back_inserter(two));
std::cout << "one:\n";
for (auto& str : one) {
std::cout << str << '\n';
}
std::cout << "two:\n";
for (auto& str : two) {
std::cout << str << '\n';
}
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnZlY3RvcjxzdGQ6OnN0cmluZz4gb25leyJjYXQiLCAiZG9nIiwgIm5ld3QifTsKICAgIHN0ZDo6dmVjdG9yPHN0ZDo6c3RyaW5nPiB0d287CiAgICAKICAgIHN0ZDo6bW92ZShiZWdpbihvbmUpLCBlbmQob25lKSwgYmFja19pbnNlcnRlcih0d28pKTsKCiAgICBzdGQ6OmNvdXQgPDwgIm9uZTpcbiI7CiAgICBmb3IgKGF1dG8mIHN0ciA6IG9uZSkgewogICAgICAgIHN0ZDo6Y291dCA8PCBzdHIgPDwgJ1xuJzsKICAgIH0KCiAgICBzdGQ6OmNvdXQgPDwgInR3bzpcbiI7CiAgICBmb3IgKGF1dG8mIHN0ciA6IHR3bykgewogICAgICAgIHN0ZDo6Y291dCA8PCBzdHIgPDwgJ1xuJzsKICAgIH0KfQo=