November 1999
Intermediate to advanced
336 pages
6h 29m
English
If you must return an object by value, the Return Value Optimization will help performance by eliminating the need for creation and destruction of a local object.
The application of the RVO is up to the discretion of the compiler implementation. You need to consult your compiler documentation or experiment to find if and when RVO is applied.
You will have a better shot at RVO by deploying the computational constructor.
Read now
Unlock full access