| http://www.w3.org/ns/prov#value | - If you were to omit the const (which is what you should do, if efficiency is a concern), then the motivation for passing by value (compared to passing by lvalue-ref-to-const) would be that you would pay for only two moves instead of a copy in cases such as this:std::string s1, s2;...processAndAdd(s1+s2);As in Herb's example, pass by value is an optimization only when moving is significantly less expen
|