summaryrefslogtreecommitdiffhomepage
path: root/include/ocl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-30 08:03:01 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-30 08:03:38 +0100
commitbc277f70e683afea8b571b77b03976b141a8be2b (patch)
tree0dd37009bfd33e75a39bc68a4e4179dc2e9b6a22 /include/ocl
parent7d48d4819c6726c70515ec4af0ca73f7dc2e36e6 (diff)
feat: fix function signature of find, find_if.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl')
-rw-r--r--include/ocl/tproc/rope.hpp4
-rw-r--r--include/ocl/tproc/rope.inl4
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 <typename It, class Pred>
- It find(It begin, It end, Pred);
+ Pred find(It begin, It end, Pred);
template <typename It, class Pred>
- It find_if(It begin, It end, Pred);
+ Pred find_if(It begin, It end, Pred);
template <typename It, class Pred>
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 <typename It, class Pred>
- 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 <typename It, class Pred>
- 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)
{