diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
| commit | 2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch) | |
| tree | 4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/range.hh | |
| parent | 96884193ddad76530a09a1b095180b0ca8257b7c (diff) | |
Default comparison operators that can be
Diffstat (limited to 'src/range.hh')
| -rw-r--r-- | src/range.hh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/range.hh b/src/range.hh index 696e5010..a36386f2 100644 --- a/src/range.hh +++ b/src/range.hh @@ -10,11 +10,7 @@ struct Range T begin; T end; - friend bool operator==(const Range& lhs, const Range& rhs) - { - return lhs.begin == rhs.begin and lhs.end == rhs.end; - } - + friend bool operator==(const Range& lhs, const Range& rhs) = default; friend size_t hash_value(const Range& range) { |
