mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
AK: Add nodiscard
attribute to BinarySearch functions
This commit is contained in:
parent
ccbf240962
commit
84d9e537cd
|
@ -13,7 +13,7 @@ namespace AK {
|
|||
|
||||
struct DefaultComparator {
|
||||
template<typename T, typename S>
|
||||
constexpr int operator()(T& lhs, S& rhs)
|
||||
[[nodiscard]] constexpr int operator()(T& lhs, S& rhs)
|
||||
{
|
||||
if (lhs > rhs)
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue