IDeque<TValue>.insert 方法

定義

將項目加入至容器中指定的位置。

多載

insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

將項目加入至容器中指定的位置。

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

將項目加入至容器中指定的位置。

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

將項目加入至容器中指定的位置。

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

將項目加入至容器中指定的位置。

備註

如需詳細資訊,請參閱 deque::insert (STL/CLR)

insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

將項目加入至容器中指定的位置。

public:
 void insert(Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _Where_iter, System::Collections::IEnumerable ^ _Right);
public void insert (Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where_iter, System.Collections.IEnumerable _Right);
abstract member insert : Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> * System.Collections.IEnumerable -> unit
Public Sub insert (_Where_iter As ContainerRandomAccessIterator(Of TValue), _Right As IEnumerable)

參數

_Where_iter
ContainerRandomAccessIterator<TValue>

容器中的位置,在此位置前插入。

_Right
IEnumerable

要插入容器之項目的列舉。

適用於

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

將項目加入至容器中指定的位置。

public:
 void ^ insert(Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _Where, TValue _Val);
public void insert (ref Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where, TValue _Val);
abstract member insert : ContainerRandomAccessIterator * Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> * 'Value -> unit
Public Function insert (ByRef unnamedParam1 As ContainerRandomAccessIterator(Of TValue), _Where As ContainerRandomAccessIterator(Of TValue), _Val As TValue) As Void

參數

unnamedParam1
ContainerRandomAccessIterator<TValue>

指定新插入之元素的迭代器。

_Where
ContainerRandomAccessIterator<TValue>

容器中的位置,在此位置前插入。

_Val
TValue

要插入容器的項目。

適用於

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

將項目加入至容器中指定的位置。

public:
 void insert(Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _Where, Microsoft::VisualC::StlClr::Generic::IInputIterator<TValue> ^ _First, Microsoft::VisualC::StlClr::Generic::IInputIterator<TValue> ^ _Last);
public void insert (Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where, Microsoft.VisualC.StlClr.Generic.IInputIterator<TValue> _First, Microsoft.VisualC.StlClr.Generic.IInputIterator<TValue> _Last);
abstract member insert : Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> * Microsoft.VisualC.StlClr.Generic.IInputIterator<'Value> * Microsoft.VisualC.StlClr.Generic.IInputIterator<'Value> -> unit
Public Sub insert (_Where As ContainerRandomAccessIterator(Of TValue), _First As IInputIterator(Of TValue), _Last As IInputIterator(Of TValue))

參數

_Where
ContainerRandomAccessIterator<TValue>

容器中的位置,在此位置前插入。

_First
IInputIterator<TValue>

要插入容器之範圍的開頭。

_Last
IInputIterator<TValue>

超過要插入容器之範圍結尾的第一個位置。

適用於

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

將項目加入至容器中指定的位置。

public:
 void insert(Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _Where, int _Count, TValue _Val);
public void insert (Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where, int _Count, TValue _Val);
abstract member insert : Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> * int * 'Value -> unit
Public Sub insert (_Where As ContainerRandomAccessIterator(Of TValue), _Count As Integer, _Val As TValue)

參數

_Where
ContainerRandomAccessIterator<TValue>

容器中的位置,在此位置前插入。

_Count
Int32

要插入至容器的項目數目。

_Val
TValue

要插入容器的項目。

備註

如需詳細資訊,請參閱 deque::insert (STL/CLR)

適用於