Bewerken

Delen via


IList<TValue>.erase Method

Definition

Removes elements from the container.

Overloads

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes the single element of the controlled sequence pointed to by the given iterator.

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

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

Remarks

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

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes the single element of the controlled sequence pointed to by the given iterator.

public:
 void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ _Where);
public void erase (ref Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Where);
abstract member erase : ContainerBidirectionalIterator * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> -> unit
Public Function erase (ByRef unnamedParam1 As ContainerBidirectionalIterator(Of TValue), _Where As ContainerBidirectionalIterator(Of TValue)) As Void

Parameters

unnamedParam1
ContainerBidirectionalIterator<TValue>

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

_Where
ContainerBidirectionalIterator<TValue>

The position of the element to erase.

Remarks

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

Applies to

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

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

public:
 void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ _First_iter, Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ _Last_iter);
public void erase (ref Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _First_iter, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Last_iter);
abstract member erase : ContainerBidirectionalIterator * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> -> unit
Public Function erase (ByRef unnamedParam1 As ContainerBidirectionalIterator(Of TValue), _First_iter As ContainerBidirectionalIterator(Of TValue), _Last_iter As ContainerBidirectionalIterator(Of TValue)) As Void

Parameters

unnamedParam1
ContainerBidirectionalIterator<TValue>

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

_First_iter
ContainerBidirectionalIterator<TValue>

The beginning position of the range of elements to erase.

_Last_iter
ContainerBidirectionalIterator<TValue>

The first position beyond the range of elements to erase.

Remarks

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

Applies to