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