bsl::list::splice

splice overloads

Synopses

Declared in <bslstl_list.h>

See the first splice overload above.

void
splice(
    const_iterator dstPosition,
    BloombergLP::bslmf::MovableRef<list> src);
» more...

Remove all elements of the specified src list and insert them, in the same order, in this list at the specified dstPosition. 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).

void
splice(
    const_iterator dstPosition,
    list& src);
» more...

See the first splice overload above.

void
splice(
    const_iterator dstPosition,
    BloombergLP::bslmf::MovableRef<list> src,
    const_iterator srcNode);
» more...

Remove the single element at the specified srcNode from the specified src list, and insert it at the specified dstPosition in this list. The behavior is undefined unless srcNode refers to a valid element in src, this list and src use the same allocator, and dstPosition is in the range [begin() .. end()] (note both endpoints included). Note that src and *this may be the same list, in which case the element is moved to a (possibly) new position in the list.

void
splice(
    const_iterator dstPosition,
    list& src,
    const_iterator srcNode);
» more...

See the first splice overload above.

void
splice(
    const_iterator dstPosition,
    BloombergLP::bslmf::MovableRef<list> src,
    const_iterator first,
    const_iterator last);
» more...

Remove the elements in the specified range [first .. last)] from the specified src list, and insert them, in the same order, at the specified dstPosition in this list. The behavior is undefined unless [first .. last)] represents a range of valid elements in src, dstPosition is not in the range [first .. last)], this list and src use the same allocator, and dstPosition is in the range [begin() .. end()] (note both endpoints included). Note that src and *this may be the same list, in which case an entire sequence of nodes is moved to a (possibly) new position in this list.

void
splice(
    const_iterator dstPosition,
    list& src,
    const_iterator first,
    const_iterator last);
» more...