IList<TValue>.splice Method

Definition

Reorders links between nodes.

Overloads

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>)

Inserts the given sequence into the container before the specified position.

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>)

Removes the element from the given container pointed to by _First and inserts it before the element in the controlled sequence pointed to by _Where.

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes the range of elements [_First, _Last) from the given container and inserts it before the element in the controlled sequence pointed to by _Where.

Remarks

For more information, see list::splice (STL/CLR).

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>)

Inserts the given sequence into the container before the specified position.

C#
public void splice(Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Where, Microsoft.VisualC.StlClr.IList<TValue> _Right);

Parameters

_Where
ContainerBidirectionalIterator<TValue>

The position in the container before which to splice.

_Right
IList<TValue>

The container to splice from. All elements will be removed from this container after the splice operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>)

Removes the element from the given container pointed to by _First and inserts it before the element in the controlled sequence pointed to by _Where.

C#
public void splice(Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Where, Microsoft.VisualC.StlClr.IList<TValue> _Right, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _First);

Parameters

_Where
ContainerBidirectionalIterator<TValue>

The position in the container before which to splice.

_Right
IList<TValue>

The container to splice from.

_First
ContainerBidirectionalIterator<TValue>

The position of the element to splice.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes the range of elements [_First, _Last) from the given container and inserts it before the element in the controlled sequence pointed to by _Where.

C#
public void splice(Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Where, Microsoft.VisualC.StlClr.IList<TValue> _Right, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _First, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Last);

Parameters

_Where
ContainerBidirectionalIterator<TValue>

The position in the container before which to splice.

_Right
IList<TValue>

The container to splice from.

_First
ContainerBidirectionalIterator<TValue>

The beginning position of the range of elements to splice.

_Last
ContainerBidirectionalIterator<TValue>

The first position beyond the range of elements to splice.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1