Chromium Code Reviews
DescriptionAdd ListContainer::AppendByMoving
This patch implements "void ListContainer::AppendByMoving(T item)" for
appending items to a ListContainer without copying. Because the source
item will not be destructed when moving to the destination, a new item
is constructed in-place to prevent double-destruction and dev sadness.
To support appending derived types when only the base type is known we
memcpy the largest possible element size.
BUG=484943
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/737f36b52ce9137b242b8259b8f440c61e6b60ba
Cr-Commit-Position: refs/heads/master@{#335826}
Patch Set 1 #Patch Set 2 : Click here for one weird trick to make compilers love your patch #Patch Set 3 : Appease the compiler overlords with the gift of a type literal suffix #
Total comments: 30
Patch Set 4 : Address reviewer comments #
Total comments: 2
Patch Set 5 : Address reviewer comments #
Messages
Total messages: 14 (3 generated)
|
|||||||||||||||||||||||||||||||||||||