IVector<TValue>.erase 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从容器中的指定位置中删除元素。
重载
| 名称 | 说明 |
|---|---|
| erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) |
删除 由_Where指向的受控序列的单个元素。 |
| erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) |
移除范围 [ |
注解
有关详细信息,请参阅 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>) 不存在此类元素。
要移除的元素的位置。
注解
有关详细信息,请参阅 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)。