std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::upper_bound
来自cppreference.com
< cpp | container | flat multimap
iterator upper_bound( const Key& key ); |
(1) | (C++23 起) |
const_iterator upper_bound( const Key& key ) const; |
(2) | (C++23 起) |
template< class K > iterator upper_bound( const K& x ); |
(3) | (C++23 起) |
template< class K > const_iterator upper_bound( const K& x ) const; |
(4) | (C++23 起) |
1) 返回指向首个大于 key 的元素的迭代器。
目录 |
[编辑] 参数
key | - | 与元素比较的键值 |
x | - | 能与 Key 比较的替用值
|
[编辑] 返回值
指向首个大于 key 的元素的迭代器。若找不到这种元素,则返回尾后(见 end())迭代器。
[编辑] 复杂度
与容器大小成对数。
[编辑] 示例
本节未完成 原因:暂无示例 |
[编辑] 参阅
返回匹配特定键的元素范围 (公开成员函数) | |
返回指向首个不小于 给定键的元素的迭代器 (公开成员函数) |