IVector<TValue>.erase Metoda

Definicja

Usuwa elementy z określonych pozycji w kontenerze.

Przeciążenia

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

Usuwa pojedynczy element kontrolowanej sekwencji wskazywanej przez _Where.

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

Usuwa elementy kontrolowanej sekwencji w zakresie [_First_iter, _Last_iter].

Uwagi

Aby uzyskać więcej informacji, zobacz vector::erase (STL/CLR).

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

Usuwa pojedynczy element kontrolowanej sekwencji wskazywanej przez _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

Parametry

unnamedParam1
ContainerRandomAccessIterator<TValue>

Iterator, który wyznacza pierwszy element, który pozostaje poza usuniętymi elementami lub end(ContainerRandomAccessIterator<TValue>) jeśli taki element nie istnieje.

_Where
ContainerRandomAccessIterator<TValue>

Pozycja elementu do usunięcia.

Uwagi

Aby uzyskać więcej informacji, zobacz vector::erase (STL/CLR).

Dotyczy

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

Usuwa elementy kontrolowanej sekwencji w zakresie [_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

Parametry

unnamedParam1
ContainerRandomAccessIterator<TValue>

Iterator, który wyznacza pierwszy element, który pozostaje poza usuniętymi elementami lub end(ContainerRandomAccessIterator<TValue>) jeśli taki element nie istnieje.

_First_iter
ContainerRandomAccessIterator<TValue>

Początek zakresu elementów do wymazywania.

_Last_iter
ContainerRandomAccessIterator<TValue>

Pierwsze położenie poza zakresem elementów do wymazywania.

Uwagi

Aby uzyskać więcej informacji, zobacz vector::erase (STL/CLR).

Dotyczy