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)。