Durant35 / Durant35/durant35.github.io

C++ std珠玑

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### std::lower_bound() & std::upper_bound()
+ 函数`lower_bound()`在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置(迭代器);如果所有元素都小于val,则返回last的位置
+ 函数`upper_bound`则返回大于val的第一个元素位置(迭代器)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.