summaryrefslogtreecommitdiff
path: root/src/utf8_iterator.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
commit96884193ddad76530a09a1b095180b0ca8257b7c (patch)
treeb218d628c370dffeb77a02e1e0bfcdbf0173af42 /src/utf8_iterator.hh
parentd1c8622dc7ac1d0e2ec07fa7034e4396dffb244f (diff)
Remove redundant comparison operators
Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist.
Diffstat (limited to 'src/utf8_iterator.hh')
-rw-r--r--src/utf8_iterator.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh
index 4fd34f54..e17c0c90 100644
--- a/src/utf8_iterator.hh
+++ b/src/utf8_iterator.hh
@@ -100,12 +100,12 @@ public:
}
bool operator==(const iterator& other) const noexcept { return m_it == other.m_it; }
- auto operator<=> (const iterator& other) const noexcept { return m_it <=> other.m_it; }
+ auto operator<=>(const iterator& other) const noexcept { return m_it <=> other.m_it; }
template<typename T>
requires std::is_same_v<T, BaseIt> or std::is_same_v<T, Sentinel>
bool operator==(const T& other) const noexcept { return m_it == other; }
- auto operator<=> (const BaseIt& other) const noexcept { return m_it <=> other; }
+ auto operator<=>(const BaseIt& other) const noexcept { return m_it <=> other; }
DifferenceType operator-(const iterator& other) const noexcept(noexcept_policy)
{