diff options
Diffstat (limited to 'include/ocl')
| -rw-r--r-- | include/ocl/tproc/detail/rope_fwd.hpp | 15 | ||||
| -rw-r--r-- | include/ocl/tproc/detail/rope_fwd.inl | 1 |
2 files changed, 13 insertions, 3 deletions
diff --git a/include/ocl/tproc/detail/rope_fwd.hpp b/include/ocl/tproc/detail/rope_fwd.hpp index 4a0264f..1691f93 100644 --- a/include/ocl/tproc/detail/rope_fwd.hpp +++ b/include/ocl/tproc/detail/rope_fwd.hpp @@ -30,11 +30,22 @@ namespace ocl::tproc using pointer = std::allocator_traits<Allocator>::pointer; using const_pointer = std::allocator_traits<Allocator>::pointer; - CharT* begin(); - CharT* end(); + CharT* begin(); + CharT* end(); + + const CharT* cbegin() const; + const CharT* cend() const; + + /// \brief Extarcts a needle from a position of n length. + basic_rope<CharT, Traits, Allocator>& substr(size_type pos, const size_type n = 0); + + /// \brief Rope's version of the find method. + size_type find(const boost::core::string_view& needle); + size_type size(); bool empty() const; + public: ~basic_rope(); basic_rope(const boost::core::basic_string_view<CharT>& in = {}); diff --git a/include/ocl/tproc/detail/rope_fwd.inl b/include/ocl/tproc/detail/rope_fwd.inl index 46b095d..b1c5c4e 100644 --- a/include/ocl/tproc/detail/rope_fwd.inl +++ b/include/ocl/tproc/detail/rope_fwd.inl @@ -50,7 +50,6 @@ namespace ocl::tproc basic_rope<CharT, Traits, Allocator>&& other) { impl_ = std::exchange(other.impl_); - rope.impl_ = nullptr; } template <class CharT, class Traits, class Allocator> |
