mirror of https://github.com/PrimeDecomp/prime.git
parent
6b69dfc5de
commit
d2c055d270
|
@ -121,11 +121,7 @@ inline It binary_find(It start, It end, const T& value, Cmp cmp) {
|
||||||
if (lower != end && !cmp(value, *lower)) {
|
if (lower != end && !cmp(value, *lower)) {
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
if (found) {
|
return found ? lower : end;
|
||||||
return lower;
|
|
||||||
} else {
|
|
||||||
return end;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template < typename T, typename Cmp >
|
template < typename T, typename Cmp >
|
||||||
|
|
Loading…
Reference in New Issue