diff --git a/AK/AllOf.h b/AK/AllOf.h index 603f293425e..b91df51f5c9 100644 --- a/AK/AllOf.h +++ b/AK/AllOf.h @@ -13,7 +13,7 @@ namespace AK { template TIterator> -constexpr bool all_of( +[[nodiscard]] constexpr bool all_of( TIterator const& begin, TEndIterator const& end, auto const& predicate) @@ -25,7 +25,7 @@ constexpr bool all_of( } template -constexpr bool all_of(Container&& container, auto const& predicate) +[[nodiscard]] constexpr bool all_of(Container&& container, auto const& predicate) { return all_of(container.begin(), container.end(), predicate); }