Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In C++ computer
programming, copy elision refers to a compiler optimization technique
that eliminates unnecessary copying of objects. The C++ language
standard generally allows implementations to perform any optimization,
as long as the resulting program's observable behavior is the same as if
the program was executed exactly as mandated by the standard. The
standard also describes a few situations where copying can be eliminated
even if this would alter the program's behavior, the most common being
the return value optimization. Another widely implemented optimization,
described in the C++ standard, is when a temporary object of class type
is copied to an object of the same type.