#include <vector>
#include <iostream>
struct A
{
std::vector<int> seq ;
std::vector<int> get_copy_of_seq() const { return seq ; }
std::vector<int>& get_reference_to_seq() { return seq ; }
};
int main()
{
A a ;
auto val = a.get_copy_of_seq() ;
auto& ref = a.get_reference_to_seq() ;
std::cout << val.size() << '\n' ; // 0
std::cout << ref.size() << '\n' ; // 0
a.seq.resize(1234) ;
std::cout << val.size() << '\n' ; // 0
std::cout << ref.size() << '\n' ; // 1234
}
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEEKewogICAgc3RkOjp2ZWN0b3I8aW50PiBzZXEgOwoKICAgIHN0ZDo6dmVjdG9yPGludD4gZ2V0X2NvcHlfb2Zfc2VxKCkgY29uc3QgeyByZXR1cm4gc2VxIDsgfQoKICAgIHN0ZDo6dmVjdG9yPGludD4mIGdldF9yZWZlcmVuY2VfdG9fc2VxKCkgeyByZXR1cm4gc2VxIDsgfQp9OwoKaW50IG1haW4oKQp7CiAgICBBIGEgOwoKICAgIGF1dG8gdmFsID0gYS5nZXRfY29weV9vZl9zZXEoKSA7CiAgICBhdXRvJiByZWYgPSBhLmdldF9yZWZlcmVuY2VfdG9fc2VxKCkgOwoKICAgIHN0ZDo6Y291dCA8PCB2YWwuc2l6ZSgpIDw8ICdcbicgOyAvLyAwCiAgICBzdGQ6OmNvdXQgPDwgcmVmLnNpemUoKSA8PCAnXG4nIDsgLy8gMAoKICAgIGEuc2VxLnJlc2l6ZSgxMjM0KSA7CiAgICBzdGQ6OmNvdXQgPDwgdmFsLnNpemUoKSA8PCAnXG4nIDsgLy8gMAogICAgc3RkOjpjb3V0IDw8IHJlZi5zaXplKCkgPDwgJ1xuJyA7IC8vIDEyMzQKfQo=