Funkcja zwracająca iterator.
Ostatnio zmodyfikowano 2015-02-07 22:34
krecik1334 Temat założony przez niniejszego użytkownika |
» 2015-02-07 20:52:56 kompilator MinGW 4.9.2 64bit obsługuje NRVO? |
|
pekfos |
» 2015-02-07 21:04:50 To jest w standardzie C++. |
|
Elaine |
» 2015-02-07 22:34:14 kompilator MinGW 4.9.2 64bit obsługuje NRVO? |
Tak, Jest opcja, która tą optymalizację wyłącza, ale gdybyś wiedział, jaka to opcja, to zapewnie nie pytałbyś się o to, czy obsługuje NRVO. To jest w standardzie C++. |
Jest w standardzie, ale nie jest wymagane. 12.8/31: When certain criteria are met, an implementation is allowed to omit the copy/move construction of a class object, even if the constructor selected for the copy/move operation and/or the destructor for the object have side effects. […] This elision of copy/move operations, called copy elision, is permitted in the following circumstances |
|
|
1 « 2 » |