Skip to content

Glossary: C++ Beyond the Basics

Copy elision

Also written: return value optimization, RVO, elision

The compiler building a returned object directly in its destination, so no copy or move happens. This is why returning by value is cheap and `return std::move(t);` is discouraged.

Where the book teaches it

Related terms

Move constructor