Luna::List::splice

void splice(const_iterator pos, List &&other, const_iterator it)

Transfers one element from another list to this list.

No memory allocation or element copy/move will be performed, this function transfers elements by changing their pointers directly so that they link to the new list.

Parameters

  • in pos

    The iterator to the position to insert the transferred element.

  • in other

    The list to transfer the element from.

  • in it

    The iterator to the element to be transferred.