aboutsummaryrefslogtreecommitdiff
path: root/src/codepoint_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codepoint_iterator.h')
-rw-r--r--src/codepoint_iterator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codepoint_iterator.h b/src/codepoint_iterator.h
index b505587..d1806e5 100644
--- a/src/codepoint_iterator.h
+++ b/src/codepoint_iterator.h
@@ -22,6 +22,8 @@ class CodepointIterator : public std::iterator<std::bidirectional_iterator_tag,
bool operator!=(const CodepointIterator&) const;
bool operator!=(const std::string::const_iterator&) const;
+ std::ptrdiff_t operator-(const std::string::const_iterator&) const;
+
char32_t operator*();
CodepointIterator& operator++();