IDeque<TValue>.erase 方法

定義

移除位於指定位置的項目。

多載

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

移除特定位置的項目。

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

移除指定之 Iterator 之間的項目。

備註

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

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

移除特定位置的項目。

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

參數

unnamedParam1
ContainerRandomAccessIterator<TValue>

指定保持在超過所移除項目之第一個項目的 Iterator,如果沒有此類項目存在則為 end(ContainerRandomAccessIterator<TValue>)

_Where
ContainerRandomAccessIterator<TValue>

要清除的項目。

備註

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

適用於

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

移除指定之 Iterator 之間的項目。

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

參數

unnamedParam1
ContainerRandomAccessIterator<TValue>

指定保持在超過所移除項目之第一個項目的 Iterator,如果沒有此類項目存在則為 end(ContainerRandomAccessIterator<TValue>)

_First_iter
ContainerRandomAccessIterator<TValue>

要清除之範圍的開頭位置。

_Last_iter
ContainerRandomAccessIterator<TValue>

超過要清除之範圍的最後一個項目的位置。

備註

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

適用於