Copy elision
Compiler optimization that eliminates copying of objects under certain conditions
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.
Nº Q5169174 ★
Commune · Histoire
Copy elision
Compiler optimization that eliminates copying of objects under certain conditions
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.
Sur Wikipédia
Texte en anglais Pas encore d'article dans ta langue : extrait en anglais.
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.
Texte : Wikipédia en anglais, CC BY-SA 4.0. ·
Cartes voisines
-
C
Constant folding
Nº Q2342581 ★
Pas en vente
-
Compilateur
Programme informatique qui produit du langage machine
Nº Q47506 ★★★
Pas en vente
-
C
Code completion
Context-aware code completion feature in programming environments
Nº Q116761507 ★★
Pas en vente
-
Programmation par copier-coller
Nº Q5169171 ★
Pas en vente
-
C
Copy-on-write
Nº Q1131607 ★★
Pas en vente
-
D
Déroulage de boucle
Nº Q1869750 ★
Pas en vente