splice overloads

Synopses

Declared in <bslstl_list.h>

See the first splice overload above.

Splice all elements from src into this list at dstPosition.

void
splice(
    const_iterator dstPosition,
    list& src);

See the single‐element splice overload above.

Splice the single element at srcNode from src into this list.

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

See the range splice overload above.

Splice the range [first .. last)] from src into this list.

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

Parameters

Name

Description

dstPosition

location before which elements are inserted

src

list whose elements are moved into this list

srcNode

iterator to the element to move

first

start of the range to move

last

one past the end of the range to move

Created with MrDocs