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>

一个迭代器,指定任何已移除的元素之外剩余元素中的第一个元素;如果在不存在这样的元素,则为 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>

一个迭代器,指定任何已移除的元素之外剩余元素中的第一个元素;如果在不存在这样的元素,则为 end(ContainerRandomAccessIterator<TValue>)

_First_iter
ContainerRandomAccessIterator<TValue>

要清除的元素范围的开头。

_Last_iter
ContainerRandomAccessIterator<TValue>

要清除的元素范围之外的第一个位置。

注解

有关详细信息,请参阅 vector:: erase (STL/CLR)

适用于