mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Changed std::lower_bound to etl::lower_bound
This commit is contained in:
parent
3fd90b19eb
commit
1b8d5a307a
@ -430,7 +430,7 @@ namespace etl
|
||||
template <typename TIterator, class T, class Compare>
|
||||
bool binary_search(TIterator first, TIterator last, const T& value, Compare compare)
|
||||
{
|
||||
first = std::lower_bound(first, last, value, compare);
|
||||
first = etl::lower_bound(first, last, value, compare);
|
||||
|
||||
return (!(first == last) && !(compare(value, *first)));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user