diff options
Diffstat (limited to 'src/libs/utils/smallstringiterator.h')
-rw-r--r-- | src/libs/utils/smallstringiterator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/utils/smallstringiterator.h b/src/libs/utils/smallstringiterator.h index 1217e4bd2b..82836d78c4 100644 --- a/src/libs/utils/smallstringiterator.h +++ b/src/libs/utils/smallstringiterator.h @@ -51,6 +51,7 @@ struct SmallStringIterator : public std::iterator<Category, Type, DistanceType, { return ++pointer_; } + SmallStringIterator operator++(int) noexcept { return pointer_++; @@ -121,16 +122,19 @@ struct SmallStringIterator : public std::iterator<Category, Type, DistanceType, return pointer_; } + constexpr bool operator==(SmallStringIterator other) const noexcept { return pointer_ == other.pointer_; } + constexpr bool operator!=(SmallStringIterator other) const noexcept { return pointer_ != other.pointer_; } + constexpr bool operator<(SmallStringIterator other) const noexcept { return pointer_ < other.pointer_; @@ -141,6 +145,11 @@ struct SmallStringIterator : public std::iterator<Category, Type, DistanceType, return pointer_; } + const Pointer data() const noexcept + { + return pointer_; + } + private: Pointer pointer_ = nullptr; }; |