ITree<TKey,TValue>.upper_bound 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
尋找與指定鍵匹配元素範圍的末端。
public:
void ^ upper_bound(Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ % unnamedParam1, TKey _Keyval);
public void upper_bound(ref Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> unnamedParam1, TKey _Keyval);
abstract member upper_bound : ContainerBidirectionalIterator * 'Key -> unit
Public Function upper_bound (ByRef unnamedParam1 As ContainerBidirectionalIterator(Of TValue), _Keyval As TKey) As Void
參數
- unnamedParam1
- ContainerBidirectionalIterator<TValue>
一個迭代器,指定受控序列中最後一個元素之後的第一個元素,該序列會雜湊到與 相同的桶 _Keyval ,且其排序 _Keyval等價於 。 若不存在此類元素,則返回 end(ContainerBidirectionalIterator<TValue>)。
- _Keyval
- TKey
要搜尋的鍵值。
備註
更多資訊請參閱 hash_map::upper_bound(STL/CLR)、hash_multimap::upper_bound(STL/CLR)、hash_set::upper_bound(STL/CLR)及hash_multiset::upper_bound(STL/CLR)。