If I want to define a method like a setter for a std::vector member (or movable object) I can do it like this:
void set(const std::vector<int>& v) { _v = v; }
But also I need to add
void set(std::vector<int>&& v) { _v = std::move(v); }
Right? Is it always best to define both in order to handle temporaries that can be move? So all setters will be doubled? Thanks.