mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
C++20: Synthesize operator!=
From operator==
The inequality operator is automatically generated by the compiler if `operator==` is defined.
This commit is contained in:
parent
b5f7a50874
commit
e8d5fb89e4
36 changed files with 0 additions and 101 deletions
|
@ -32,7 +32,6 @@ struct Partition final
|
|||
constexpr Partition() = default;
|
||||
constexpr explicit Partition(u64 offset_) : offset(offset_) {}
|
||||
constexpr bool operator==(const Partition& other) const { return offset == other.offset; }
|
||||
constexpr bool operator!=(const Partition& other) const { return !(*this == other); }
|
||||
constexpr bool operator<(const Partition& other) const { return offset < other.offset; }
|
||||
constexpr bool operator>(const Partition& other) const { return other < *this; }
|
||||
constexpr bool operator<=(const Partition& other) const { return !(*this < other); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue