IList<TValue>.insert IList<TValue>.insert IList<TValue>.insert IList<TValue>.insert Method

Definition

Adds elements to the container.

Overloads

insert(ContainerBidirectionalIterator<TValue>, IEnumerable) insert(ContainerBidirectionalIterator<TValue>, IEnumerable) insert(ContainerBidirectionalIterator<TValue>, IEnumerable) insert(ContainerBidirectionalIterator<TValue>, IEnumerable)

Inserts the elements of the specified enumerator into the container.

insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)

Inserts an element of the given value into the container.

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

Inserts the sequence [_First, _Last) into the container.

insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) insert(ContainerBidirectionalIterator<TValue>, Int32, TValue)

Inserts an element of the given value into the container.

Remarks

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

insert(ContainerBidirectionalIterator<TValue>, IEnumerable) insert(ContainerBidirectionalIterator<TValue>, IEnumerable) insert(ContainerBidirectionalIterator<TValue>, IEnumerable) insert(ContainerBidirectionalIterator<TValue>, IEnumerable)

Inserts the elements of the specified enumerator into the container.

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

Parameters

_Right
IEnumerable IEnumerable IEnumerable IEnumerable

The enumeration whose elements are to be inserted into the container.

insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)

Inserts an element of the given value into the container.

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

Parameters

_Val
TValue TValue TValue TValue

The value of the element to insert into the container.

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

Inserts the sequence [_First, _Last) into the container.

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

Parameters

_First
IInputIterator<TValue> IInputIterator<TValue> IInputIterator<TValue> IInputIterator<TValue>

The beginning position of the range of elements to insert into the container.

_Last
IInputIterator<TValue> IInputIterator<TValue> IInputIterator<TValue> IInputIterator<TValue>

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

insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) insert(ContainerBidirectionalIterator<TValue>, Int32, TValue)

Inserts an element of the given value into the container.

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

Parameters

_Count
Int32 Int32 Int32 Int32

The number of elements to insert into the container.

_Val
TValue TValue TValue TValue

The value of the element to insert into the container.

Remarks

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

Applies to