Core/Misc: Modernize comparison operators

(cherry picked from commit f0a862e71b)
This commit is contained in:
Shauren
2023-08-24 11:48:45 +02:00
parent 343d09bc95
commit 451314241d
21 changed files with 77 additions and 106 deletions

View File

@@ -7,6 +7,7 @@
#include <winnt.h>
#include <winternl.h>
#include <dbghelp.h>
#include <compare>
#include <set>
#include <cstdlib>
#include <cstdio>
@@ -101,11 +102,8 @@ struct SymbolPair
_offset = offset;
}
bool operator<(SymbolPair const& other) const
{
return _offset < other._offset ||
(_offset == other._offset && _type < other._type);
}
bool operator==(SymbolPair const& other) const = default;
std::strong_ordering operator<=>(SymbolPair const& other) const = default;
DWORD _type;
DWORD_PTR _offset;