mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-06 23:15:51 +00:00
Match binary_find.
Thanks Gib.
This commit is contained in:
parent
572777596d
commit
9faedfc547
@ -121,11 +121,7 @@ inline It binary_find(It start, It end, const T& value, Cmp cmp) {
|
||||
if (lower != end && !cmp(value, *lower)) {
|
||||
found = true;
|
||||
}
|
||||
if (found) {
|
||||
return lower;
|
||||
} else {
|
||||
return end;
|
||||
}
|
||||
return found ? lower : end;
|
||||
}
|
||||
|
||||
template < typename T, typename Cmp >
|
||||
|
Loading…
x
Reference in New Issue
Block a user