ערוך

שתף באמצעות


IDeque<TValue>.erase Method

Definition

Removes elements at specified positions.

Overloads

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

Removes the element at the specified position.

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

Removes the elements between the specified iterators.

Remarks

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

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

Removes the element at the specified position.

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

Parameters

unnamedParam1
ContainerRandomAccessIterator<TValue>

An iterator that designates the first element remaining beyond any elements removed, or end(ContainerRandomAccessIterator<TValue>) if no such element exists.

_Where
ContainerRandomAccessIterator<TValue>

The element to erase.

Remarks

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

Applies to

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

Removes the elements between the specified iterators.

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

Parameters

unnamedParam1
ContainerRandomAccessIterator<TValue>

An iterator that designates the first element remaining beyond any elements removed, or end(ContainerRandomAccessIterator<TValue>) if no such element exists.

_First_iter
ContainerRandomAccessIterator<TValue>

The beginning position of the range to erase.

_Last_iter
ContainerRandomAccessIterator<TValue>

The position one beyond the last element of the range to erase.

Remarks

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

Applies to