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

Definizione

Rimuove gli elementi dal contenitore.Removes elements from the container.

Overload

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

Rimuove dal contenitore gli elementi che corrispondono alla chiave specificata.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>)

Rimuove dal contenitore l'elemento indicato dall'iteratore specificato.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>)

Rimuove dal contenitore gli elementi compresi tra gli iteratori specificati.Removes from the container the elements between the specified iterators.

Commenti

Per altre informazioni, vedere hash_Map:: Erase (STL/CLR), hash_multimap:: Erase (STL/CLR), hash_set:: 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) erase(TKey) erase(TKey) erase(TKey)

Rimuove dal contenitore gli elementi che corrispondono alla chiave specificata.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

Parametri

_Keyval
TKey TKey TKey TKey

Valore chiave da cancellare.The key value to erase.

Restituisce

Numero degli elementi rimossi.The number of elements removed.

Commenti

Per altre informazioni, vedere hash_Map:: Erase (STL/CLR), hash_multimap:: Erase (STL/CLR), hash_set:: 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(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Rimuove dal contenitore l'elemento indicato dall'iteratore specificato.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 :  * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> -> unit
Public Function erase (ByRef  As ContainerBidirectionalIterator(Of TValue), _Where As ContainerBidirectionalIterator(Of TValue)) As Void

Parametri

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

Iteratore che punta all'elemento da cancellare.An iterator that points to the element to erase.

Commenti

Per altre informazioni, vedere hash_Map:: Erase (STL/CLR), hash_multimap:: Erase (STL/CLR), hash_set:: 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(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>)

Rimuove dal contenitore gli elementi compresi tra gli iteratori specificati.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 :  * 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

Parametri

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

Un iteratore che punta all'inizio dell'intervallo da cancellare.An iterator that points to the beginning of the range to erase.

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

Iteratore che punta alla posizione immediatamente seguente all'intervallo da cancellare.An iterator that points to the position that immediately follows the range to erase.

Commenti

Per altre informazioni, vedere hash_Map:: Erase (STL/CLR), hash_multimap:: Erase (STL/CLR), hash_set:: 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).

Si applica a