From 62dc37371aa95fed51c30447c2596697d7421ead Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 26 Dec 2025 09:44:50 +0100 Subject: feat: update library. Signed-off-by: Amlal El Mahrouss --- include/ocl/tproc/detail/rope_fwd.hpp | 2 +- include/ocl/tproc/detail/rope_fwd.inl | 19 ++++++++++++++----- include/ocl/tproc/rope.hpp | 13 +++++++------ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/include/ocl/tproc/detail/rope_fwd.hpp b/include/ocl/tproc/detail/rope_fwd.hpp index f694269..4a0264f 100644 --- a/include/ocl/tproc/detail/rope_fwd.hpp +++ b/include/ocl/tproc/detail/rope_fwd.hpp @@ -54,7 +54,7 @@ namespace ocl::tproc using crope = basic_rope; using wrope = basic_rope; -} // namespace ocl +} // namespace ocl::tproc #include "rope_fwd.inl" diff --git a/include/ocl/tproc/detail/rope_fwd.inl b/include/ocl/tproc/detail/rope_fwd.inl index 11ed792..46b095d 100644 --- a/include/ocl/tproc/detail/rope_fwd.inl +++ b/include/ocl/tproc/detail/rope_fwd.inl @@ -13,11 +13,20 @@ namespace ocl::tproc struct basic_rope::tree_impl { size_t size_; - CharT* head_, tail_; + CharT *head_, tail_; - size_t size() { return size_; } - CharT* begin() { return head_; } - CharT* end() { return tail_; } + size_t size() + { + return size_; + } + CharT* begin() + { + return head_; + } + CharT* end() + { + return tail_; + } }; template @@ -76,6 +85,6 @@ namespace ocl::tproc return impl_->size() < 1; } -} // namespace ocl +} // namespace ocl::tproc #endif \ No newline at end of file diff --git a/include/ocl/tproc/rope.hpp b/include/ocl/tproc/rope.hpp index c01106c..4551a79 100644 --- a/include/ocl/tproc/rope.hpp +++ b/include/ocl/tproc/rope.hpp @@ -10,11 +10,12 @@ namespace ocl::tproc::rope { - struct reverse_pred; - struct fast_pred; - struct lowercase_pred; - struct exact_pred; - struct stars_with_pred; + + struct reverse_pred; + struct fast_pred; + struct lowercase_pred; + struct exact_pred; + struct stars_with_pred; template It find(It begin, It end, Pred); @@ -28,6 +29,6 @@ namespace ocl::tproc::rope template size_t erase_if(It begin, It end, Callable); -} // namespace ocl::tproc +} // namespace ocl::tproc::rope #endif // __OCL_TPROC_ROPE_HPP \ No newline at end of file -- cgit v1.2.3