3 ms·
>This optimization is guaranteed to occur. Compilers which don't do this are nonconforming. NRVO is not guaranteed to occur, only unnamed RVO (`bar foo() { ret
by Arnavion 2y ago
>This optimization is guaranteed to occur. Compilers which don't do this are nonconforming.
NRVO is not guaranteed to occur, only unnamed RVO (`bar foo() { return bar(...) ; }`) is.