summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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)
{