diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-01-24 21:02:07 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-01-24 21:22:20 +1100 |
| commit | 346c78f5e00302a6a8b0563b84c504eda61d4a62 (patch) | |
| tree | cc9b1eb972b4dda474b67df031309442bc5e2fe7 /src/utf8_iterator.hh | |
| parent | 4b72cfe530b682ad97f4d4815dcce7ca305bb7e6 (diff) | |
Header and dependency cleanup
Diffstat (limited to 'src/utf8_iterator.hh')
| -rw-r--r-- | src/utf8_iterator.hh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh index 4dd9ffd0..81302ef9 100644 --- a/src/utf8_iterator.hh +++ b/src/utf8_iterator.hh @@ -18,11 +18,15 @@ template<typename BaseIt, typename CodepointType = Codepoint, typename DifferenceType = CharCount, typename InvalidPolicy = utf8::InvalidPolicy::Pass> -class iterator : public std::iterator<std::bidirectional_iterator_tag, - CodepointType, DifferenceType, - CodepointType*, CodepointType> +class iterator { public: + using value_type = CodepointType; + using difference_type = DifferenceType; + using pointer = CodepointType*; + using reference = CodepointType&; + using iterator_category = std::bidirectional_iterator_tag; + iterator() = default; constexpr static bool noexcept_policy = noexcept(InvalidPolicy{}(0)); |
