std::map 成员函数:lower_bound 与 upper_bound
iterator lower_bound(const key_type& _Keyval):返回一个迭代器,指向键值 >= _Keyval 的第一个元素; iterator upper_bound(const key_type& _Keyval):返回一个迭代器,指向键值 > _Keyval 的第一个元素;例:map<int, string&g...
原创
2020-03-26 20:30:30 ·
13018 阅读 ·
3 评论