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.
This is the blink-side version of https://codereview.chromium.org/1202153002.
BUG=484943
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197685
Patch Set 1 #Patch Set 2 : Appease compiler overlords #
Messages
Total messages: 11 (5 generated)
|
|||||||||||||||||||||||||||||||||||||