แก้ไข

แชร์ผ่าน


IDeque<TValue>.assign Method

Definition

Replaces all elements of the container with the given elements.

Overloads

assign(IEnumerable)

Replaces all elements of the container with the elements in the given IEnumerable object.

assign(IInputIterator<TValue>, IInputIterator<TValue>)

Replaces all elements of the container with the elements specified by the given IInputIterator<TValue> objects.

assign(Int32, TValue)

Replaces all elements of the container with the given number of specified elements.

Remarks

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

assign(IEnumerable)

Replaces all elements of the container with the elements in the given IEnumerable object.

public:
 void assign(System::Collections::IEnumerable ^ _Right);
public void assign (System.Collections.IEnumerable _Right);
abstract member assign : System.Collections.IEnumerable -> unit
Public Sub assign (_Right As IEnumerable)

Parameters

_Right
IEnumerable

The enumeration to insert into the container.

Remarks

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

Applies to

assign(IInputIterator<TValue>, IInputIterator<TValue>)

Replaces all elements of the container with the elements specified by the given IInputIterator<TValue> objects.

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

Parameters

_First
IInputIterator<TValue>

The starting position 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.

Remarks

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

Applies to

assign(Int32, TValue)

Replaces all elements of the container with the given number of specified elements.

public:
 void assign(int _Count, TValue _Val);
public void assign (int _Count, TValue _Val);
abstract member assign : int * 'Value -> unit
Public Sub assign (_Count As Integer, _Val As TValue)

Parameters

_Count
Int32

The number of elements to insert into the container.

_Val
TValue

The value of the element to insert into the container.

Remarks

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

Applies to