แก้ไข

แชร์ผ่าน


IVector<TValue>.erase Method

Definition

Removes elements from specified positions in the container.

Overloads

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

Removes the single element of the controlled sequence that is pointed to by _Where.

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

Removes the elements of the controlled sequence in the range [_First_iter, _Last_iter].

Remarks

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

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

Removes the single element of the controlled sequence that is pointed to by _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

Parameters

unnamedParam1
ContainerRandomAccessIterator<TValue>

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

_Where
ContainerRandomAccessIterator<TValue>

The position of the element to remove.

Remarks

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

Applies to

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

Removes the elements of the controlled sequence in the range [_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

Parameters

unnamedParam1
ContainerRandomAccessIterator<TValue>

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

_First_iter
ContainerRandomAccessIterator<TValue>

The beginning of the range of elements to erase.

_Last_iter
ContainerRandomAccessIterator<TValue>

The first position beyond the range of elements to erase.

Remarks

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

Applies to