From 318bee03d8ac23b681ca3447fc939eae81b0019b Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Sun, 26 Jun 2022 10:18:56 -0600 Subject: [PATCH] AK: Add `nodiscard` attribute to AllOf functions --- AK/AllOf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }