IHash<TKey,TValue>.erase Método

Definição

Remove elementos do contêiner.Removes elements from the container.

Sobrecargas

erase(TKey)

Remove os elementos do contêiner que corresponde à chave especificada.Removes elements from the container that match the specified key.

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

Remove do contêiner o elemento especificado pelo iterador fornecido.Removes from the container the element that is specified by the given iterator.

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

Remove do contêiner os elementos entre os iteradores especificados.Removes from the container the elements between the specified iterators.

Comentários

Para obter mais informações, consulte _ mapa de hash:: Erase (STL/CLR), Multimap de hash _ :: Erase (STL/CLR), conjunto de hash _ :: Erase (STL/CLR)e 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)

Remove os elementos do contêiner que corresponde à chave 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

O valor de chave a ser apagado.The key value to erase.

Retornos

Int32

O número de elementos removidos.The number of elements removed.

Comentários

Para obter mais informações, consulte _ mapa de hash:: Erase (STL/CLR), Multimap de hash _ :: Erase (STL/CLR), conjunto de hash _ :: Erase (STL/CLR)e 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).

Aplica-se a

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

Remove do contêiner o elemento especificado pelo iterador fornecido.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>

Um iterador que aponta para o elemento a ser apagado.An iterator that points to the element to erase.

Comentários

Para obter mais informações, consulte _ mapa de hash:: Erase (STL/CLR), Multimap de hash _ :: Erase (STL/CLR), conjunto de hash _ :: Erase (STL/CLR)e 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).

Aplica-se a

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

Remove do contêiner os elementos entre os 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>

Um iterador que aponta para o início do intervalo a ser apagado.An iterator that points to the beginning of the range to erase.

_Last_iter
ContainerBidirectionalIterator<TValue>

Um iterador que aponta para a posição imediatamente após o intervalo a ser apagado.An iterator that points to the position that immediately follows the range to erase.

Comentários

Para obter mais informações, consulte _ mapa de hash:: Erase (STL/CLR), Multimap de hash _ :: Erase (STL/CLR), conjunto de hash _ :: Erase (STL/CLR)e 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).

Aplica-se a