Copy elision
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, provided the resulting program's observable behavior is the same as if, i.e. pretending, the program were executed exactly as mandated by the standard. Beyond that, 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 (see below). 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. As a result, copy-initialization is usually equivalent to direct-initialization in terms of performance, but not in semantics; copy-initialization still requires an accessible copy constructor. The optimization can not be applied to a temporary object that has been bound to a reference.
Source: https://en.wikipedia.org/wiki/Copy_elision
Created with WikipediaReaderReborn (c) WikipediaReader
Other Videos By WikiReader
2021-07-26 | Shuguang Zhang |
2021-07-26 | Je cours |
2021-07-26 | August 2007 in sports |
2021-07-26 | Wimbledon, New Zealand |
2021-07-26 | Gweal, Isles of Scilly |
2021-07-26 | Nalanda College of Engineering |
2021-07-26 | Chopt |
2021-07-26 | Mark Carleton-Smith |
2021-07-26 | Peierls bracket |
2021-07-26 | Semi Chellas |
2021-07-26 | Copy elision |
2021-07-26 | Shafaq Nur Hanim |
2021-07-26 | Rajya Praja Sammelan |
2021-07-26 | 1979 Pacific hurricane season |
2021-07-26 | Rosemarie Reichenbach |
2021-07-26 | Kheyrabad, Khuzestan |
2021-07-26 | Denis McNamara |
2021-07-26 | Trần Văn Tuý |
2021-07-26 | Modern pentathlon at the 2015 Pan American Games – Qualification |
2021-07-26 | Abraliopsis morisii |
2021-07-26 | Ensign Pulver |