AK: Add nodiscard attribute to BinarySearch functions

This commit is contained in:
Lenny Maiorani 2022-06-26 10:20:38 -06:00 committed by Brian Gianforcaro
parent ccbf240962
commit 84d9e537cd
Notes: sideshowbarker 2024-07-17 09:45:23 +09:00

View file

@ -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;