ITree<TKey,TValue>.erase ITree<TKey,TValue>.erase ITree<TKey,TValue>.erase ITree<TKey,TValue>.erase Method

Definición

Quita todos los elementos del contenedor.Removes elements from the container.

Sobrecargas

erase(TKey) erase(TKey) erase(TKey) erase(TKey)

Quita los elementos del contenedor que coinciden con la clave especificada.Removes elements from the container that match the specified key.

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

Quita del contenedor el elemento que especifica el iterador especificado.Removes from the container the element that is specified by the given iterator.

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

Quita del contenedor los elementos situados entre los iteradores especificados.Removes from the container the elements between the specified iterators.

Comentarios

Para obtener más información, vea_hash map:: Erase (STL/CLR), hash_Multimap:: Erase (STL/CLR), hash_set:: Erase (STL/CLR)y hash_MultiSet:: Erase (STL/CLR) .For more information, see hash_map::erase (STL/CLR), hash_multimap::erase (STL/CLR), hash_set::erase (STL/CLR), and hash_multiset::erase (STL/CLR).

erase(TKey) erase(TKey) erase(TKey) erase(TKey)

Quita los elementos del contenedor que coinciden con la clave especificada.Removes elements from the container that match the specified key.

public:
 int erase(TKey _Keyval);
public int erase (TKey _Keyval);
abstract member erase : 'Key -> int
Public Function erase (_Keyval As TKey) As Integer

Parámetros

_Keyval
TKey TKey TKey TKey

Valor de clave que se va a borrar.The key value to erase.

Devoluciones

Número de elementos quitados.The number of elements removed.

Comentarios

Para obtener más información, vea_hash map:: Erase (STL/CLR), hash_Multimap:: Erase (STL/CLR), hash_set:: Erase (STL/CLR)y hash_MultiSet:: Erase (STL/CLR) .For more information, see hash_map::erase (STL/CLR), hash_multimap::erase (STL/CLR), hash_set::erase (STL/CLR), and hash_multiset::erase (STL/CLR).

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

Quita del contenedor el elemento que especifica el iterador especificado.Removes from the container the element that is specified by the given iterator.

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

Parámetros

_Where
ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue>

Iterador que señala el elemento que se va a borrar.An iterator that points to the element to erase.

Comentarios

Para obtener más información, vea_hash map:: Erase (STL/CLR), hash_Multimap:: Erase (STL/CLR), hash_set:: Erase (STL/CLR)y hash_MultiSet:: Erase (STL/CLR) .For more information, see hash_map::erase (STL/CLR), hash_multimap::erase (STL/CLR), hash_set::erase (STL/CLR), and hash_multiset::erase (STL/CLR).

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

Quita del contenedor los elementos situados entre los iteradores especificados.Removes from the container the elements between the specified iterators.

public:
 void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ % , 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> , 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  As ContainerBidirectionalIterator(Of TValue), _First_iter As ContainerBidirectionalIterator(Of TValue), _Last_iter As ContainerBidirectionalIterator(Of TValue)) As Void

Parámetros

_First_iter
ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue>

Iterador que señala el principio del intervalo que se va a borrar.An iterator that points to the beginning of the range to erase.

_Last_iter
ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue> ContainerBidirectionalIterator<TValue>

Iterador que señala la posición que está inmediatamente a continuación del intervalo que se va a borrar.An iterator that points to the position that immediately follows the range to erase.

Comentarios

Para obtener más información, vea_hash map:: Erase (STL/CLR), hash_Multimap:: Erase (STL/CLR), hash_set:: Erase (STL/CLR)y hash_MultiSet:: Erase (STL/CLR) .For more information, see hash_map::erase (STL/CLR), hash_multimap::erase (STL/CLR), hash_set::erase (STL/CLR), and hash_multiset::erase (STL/CLR).

Se aplica a