mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-31 07:12:39 -06:00
Core: FindBinaryIter fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@8534 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f43bef529b
commit
594782d704
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ int FindBinary(const C& v, const T& val, int pos, int count, const L& less)
|
|||
template <class I, class T, class L>
|
||||
I FindBinaryIter(I begin, I end, const T& val, const L& less)
|
||||
{
|
||||
int q = FindUpperBound(begin, begin, end, val, less);
|
||||
int q = FindBinary(begin, val, 0, end - begin, less);
|
||||
return q < 0 ? NULL : begin + q;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue