From bc277f70e683afea8b571b77b03976b141a8be2b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 30 Dec 2025 08:03:01 +0100 Subject: feat: fix function signature of find, find_if. Signed-off-by: Amlal El Mahrouss --- include/ocl/tproc/rope.hpp | 4 ++-- include/ocl/tproc/rope.inl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ocl/tproc/rope.hpp b/include/ocl/tproc/rope.hpp index 9ad5e93..e0a41b6 100644 --- a/include/ocl/tproc/rope.hpp +++ b/include/ocl/tproc/rope.hpp @@ -133,10 +133,10 @@ namespace ocl::tproc { template - It find(It begin, It end, Pred); + Pred find(It begin, It end, Pred); template - It find_if(It begin, It end, Pred); + Pred find_if(It begin, It end, Pred); template It::typename size_type erase(It begin, It end, Pred); diff --git a/include/ocl/tproc/rope.inl b/include/ocl/tproc/rope.inl index 4158e16..d53899f 100644 --- a/include/ocl/tproc/rope.inl +++ b/include/ocl/tproc/rope.inl @@ -10,7 +10,7 @@ namespace ocl::tproc::rope { template - It find(It begin, It end, Pred pred) + Pred find(It begin, It end, Pred pred) { for (auto it = begin; it != end; ++it) { @@ -24,7 +24,7 @@ namespace ocl::tproc::rope } template - It find_if(It begin, It end, Pred pred) + Pred find_if(It begin, It end, Pred pred) { for (auto it = begin; it != end; ++it) { -- cgit v1.2.3