Merge pull request #1213 from kugelrund/patch-1

Clarify result of lower_bound
This commit is contained in:
Gabriel Dos Reis 2018-05-28 13:13:30 -07:00 committed by GitHub
commit 5405d04ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13160,7 +13160,7 @@ needed information back to the caller. Therefore, the standard library also offe
template <class ForwardIterator, class T>
ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, const T& val);
`lower_bound` returns an iterator to the first match if any, otherwise `last`.
`lower_bound` returns an iterator to the first match if any, otherwise to the first element greater than `val`, or `last` if no such element is found.
However, `lower_bound` still doesn't return enough information for all uses, so the standard library also offers