diff --git a/AK/AnyOf.h b/AK/AnyOf.h index 5d851a97fe9..fabc0efc972 100644 --- a/AK/AnyOf.h +++ b/AK/AnyOf.h @@ -13,7 +13,7 @@ namespace AK { template TIterator> -constexpr bool any_of( +[[nodiscard]] constexpr bool any_of( TIterator const& begin, TEndIterator const& end, auto const& predicate) @@ -22,7 +22,7 @@ constexpr bool any_of( } template -constexpr bool any_of(Container&& container, auto const& predicate) +[[nodiscard]] constexpr bool any_of(Container&& container, auto const& predicate) { return any_of(container.begin(), container.end(), predicate); }