IDeque<TValue>.insert Method

Definition

Adds elements at a specified position in the container.

Overloads

insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

Adds elements at a specified position in the container.

insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue)

Adds an element at a specified position in the container.

insert(ContainerRandomAccessIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>)

Adds elements at a specified position in the container.

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

Adds an element at a specified position in the container.

Remarks

For more information, see deque::insert (STL/CLR).

insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

Adds elements at a specified position in the container.

C#
public void insert(Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where_iter, System.Collections.IEnumerable _Right);

Parameters

_Where_iter
ContainerRandomAccessIterator<TValue>

The location in the container in front of which to insert.

_Right
IEnumerable

The enumeration of elements to insert into the container.

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

insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue)

Adds an element at a specified position in the container.

C#
public void insert(ref Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where, TValue _Val);

Parameters

unnamedParam1
ContainerRandomAccessIterator<TValue>

An iterator that designates the newly inserted element.

_Where
ContainerRandomAccessIterator<TValue>

The location in the container in front of which to insert.

_Val
TValue

The element to be inserted into the container.

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

insert(ContainerRandomAccessIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>)

Adds elements at a specified position in the container.

C#
public void insert(Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where, Microsoft.VisualC.StlClr.Generic.IInputIterator<TValue> _First, Microsoft.VisualC.StlClr.Generic.IInputIterator<TValue> _Last);

Parameters

_Where
ContainerRandomAccessIterator<TValue>

The location in the container in front of which to insert.

_First
IInputIterator<TValue>

The beginning of the range to insert into the container.

_Last
IInputIterator<TValue>

The first position beyond the end of the range to insert into the container.

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

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

Adds an element at a specified position in the container.

C#
public void insert(Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where, int _Count, TValue _Val);

Parameters

_Where
ContainerRandomAccessIterator<TValue>

The location in the container in front of which to insert.

_Count
Int32

The number of elements to insert into the container.

_Val
TValue

The element to be inserted into the container.

Remarks

For more information, see deque::insert (STL/CLR).

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