IHash<TKey,TValue>.erase メソッド

定義

コンテナーから要素を削除します。

オーバーロード

erase(TKey)

指定したキーに一致する要素をコンテナーから削除します。

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

指定した反復子によって指定される要素をコンテナーから削除します。

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

指定した反復子間の要素をコンテナーから削除します。

注釈

詳細については、「 hash_map::erase (STL/CLR)」、「 hash_multimap::erase (STL/CLR)」hash_set::erase (STL/CLR)および「hash_multiset::erase (STL/CLR)」を参照してください。

erase(TKey)

指定したキーに一致する要素をコンテナーから削除します。

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

パラメーター

_Keyval
TKey

消去するキー値。

戻り値

削除された要素の数。

注釈

詳細については、「 hash_map::erase (STL/CLR)」、「 hash_multimap::erase (STL/CLR)」hash_set::erase (STL/CLR)および「hash_multiset::erase (STL/CLR)」を参照してください。

適用対象

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

指定した反復子によって指定される要素をコンテナーから削除します。

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

パラメーター

unnamedParam1
ContainerBidirectionalIterator<TValue>

削除される要素の次の最初の要素を指定する反復子。このような要素が存在しない場合は end(ContainerBidirectionalIterator<TValue>)

_Where
ContainerBidirectionalIterator<TValue>

消去する要素を指す反復子。

注釈

詳細については、「 hash_map::erase (STL/CLR)」、「 hash_multimap::erase (STL/CLR)」hash_set::erase (STL/CLR)および「hash_multiset::erase (STL/CLR)」を参照してください。

適用対象

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

指定した反復子間の要素をコンテナーから削除します。

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

パラメーター

unnamedParam1
ContainerBidirectionalIterator<TValue>

削除される要素の次の最初の要素を指定する反復子。このような要素が存在しない場合は end(ContainerBidirectionalIterator<TValue>)

_First_iter
ContainerBidirectionalIterator<TValue>

消去する範囲の先頭を指す反復子。

_Last_iter
ContainerBidirectionalIterator<TValue>

消去する範囲の直後の位置を指す反復子。

注釈

詳細については、「 hash_map::erase (STL/CLR)」、「 hash_multimap::erase (STL/CLR)」hash_set::erase (STL/CLR)および「hash_multiset::erase (STL/CLR)」を参照してください。

適用対象