From 28174e0b081adc5f1524d9e2c6fa51cde1389cd2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 6 Sep 2024 14:44:07 +0300 Subject: [PATCH] Make any_equals take a const reference to the container --- source/core/algorithm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/algorithm.h b/source/core/algorithm.h index 43bbaee..e2a30bf 100644 --- a/source/core/algorithm.h +++ b/source/core/algorithm.h @@ -39,7 +39,7 @@ struct ValueMatch }; template -inline bool any_equals(Container &cont, const T &value) +inline bool any_equals(const Container &cont, const T &value) { return std::any_of(cont.begin(), cont.end(), ValueMatch{value}); } -- 2.45.2