From 2274089a1c9175699288ad45e5abf2b825053375 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Mon, 25 Mar 2024 15:10:15 +0200 Subject: [PATCH] Update algorithm functions template parameter names --- include_std/algorithm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include_std/algorithm b/include_std/algorithm index 918bc20..f717ae8 100644 --- a/include_std/algorithm +++ b/include_std/algorithm @@ -75,8 +75,8 @@ namespace std return last; } - template - constexpr InputIt find_if(InputIt first, InputIt last, UnaryPredicate p) + template + constexpr InputIt find_if(InputIt first, InputIt last, UnaryPred p) { for (; first != last; ++first) if (p(*first)) @@ -85,8 +85,8 @@ namespace std return last; } - template - constexpr InputIt find_if_not(InputIt first, InputIt last, UnaryPredicate q) + template + constexpr InputIt find_if_not(InputIt first, InputIt last, UnaryPred q) { for (; first != last; ++first) if (!q(*first)) @@ -106,8 +106,8 @@ namespace std return first; } - template - ForwardIt remove_if(ForwardIt first, ForwardIt last, UnaryPredicate p) + template + ForwardIt remove_if(ForwardIt first, ForwardIt last, UnaryPred p) { first = std::find_if(first, last, p); if (first != last)