return by value
The function returns its own copy of the result.
Returning by value produces a new object for the caller; with copy elision and move semantics this is cheap, and it cannot dangle.
The function returns its own copy of the result.
Returning by value produces a new object for the caller; with copy elision and move semantics this is cheap, and it cannot dangle.