Add 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
Review URL: https://codereview.chromium.org/1202153002
Cr-Commit-Position: refs/heads/master@{#335826}
3 files changed