Chromium Code Reviews
DescriptionTransfer the C++03 move-only type emulation into base/move.h and also make ScopedVector move-only.
Also:
* Add a lot of documentation explaining what this macro does.
* Change the implementation of RValue so it cannot be instantiated.
The change to always use RValue& makes for more efficent code in debug builds. Looking at the disassembly for a simple use case (calling a function with one parameter), it removes the creation of one temporary.
BUG=96118
TEST=new unittests. exist code still compiles.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118388
Patch Set 1 #Patch Set 2 : helps to actually add the file. #Patch Set 3 : proof the comment #Patch Set 4 : maybe we don't actually generate strict aliasing warnings?? #Patch Set 5 : rebased #Patch Set 6 : rebased #Patch Set 7 : errr...make ScopedVector *actually* work. #
Total comments: 2
Patch Set 8 : fix comment #Patch Set 9 : Fixed nit and ran through spell check. #
Total comments: 5
Patch Set 10 : fix comments #
Messages
Total messages: 10 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||