IVector<TValue>.erase 方法

定義

從容器中的指定位置移除項目。

多載

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

拿掉 _Where所指向之受控制序列的單一元素。

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

移除範圍 [_First_iter, _Last_iter] 中受控制序列的項目。

備註

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

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

拿掉 _Where所指向之受控制序列的單一元素。

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>

要移除之項目的位置。

備註

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

適用於

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

移除範圍 [_First_iter, _Last_iter] 中受控制序列的項目。

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>

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

備註

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

適用於