ITree<TKey,TValue>.erase メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンテナーから要素を削除します。
オーバーロード
| Name | 説明 |
|---|---|
| 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>) 。
消去する要素を指す反復子。
注釈
詳細については、「 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)」を参照してください。