What is RVO?
Show answer and explanation
RVO is copy elision for an object returned by value. C++17 guarantees elision for matching prvalue cases, while NRVO for a named local remains permitted rather than guaranteed; eligible elision may omit copy/move even when those operations have side effects.
RVO is copy elision for an object returned by value. C++17 guarantees elision for matching prvalue cases, while NRVO for a named local remains permitted rather than guaranteed; eligible elision may omit copy/move even when those operations have side effects.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.