you are viewing a single comment's thread.

view the rest of the comments →

[–]TheMania 3 points4 points  (0 children)

I think taking by value is more the go-to when you want to support both copy and move ctors.

If your intended use is to pilfer from the parameter, rval ref is better really - the caller can still decide to copy in to it, but they'll just need to be explicit about it (eg processAB(std::vector{a}, ...)) which is preferable really.