bsl::list::splice

Splice all elements from src into this list at dstPosition.

Synopsis

Declared in <bslstl_list.h>

void
splice(
    const_iterator dstPosition,
    list& src);

Description

The behavior is undefined unless src is not this list, this list and src use the same allocator, and dstPosition is in the range [begin() .. end()] (note both endpoints included).

Parameters

NameDescription
dstPositionlocation before which elements are inserted
srclist whose elements are moved into this list