summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2023-12-14 22:18:26 -0500
committerGlenn Smith <glenn@vector35.com>2024-01-12 14:40:12 -0500
commit9811203444432647137256523184571946151749 (patch)
treeeb9b163edf9ac0d6f1363198e3f03c6f484b60b3 /binaryninjaapi.h
parent8650691983556336705759325037086143587037 (diff)
Add QNAT::operator== so unordered_map works
Surprised this isn't a thing yet
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 2c9f1582..5f7e8cc2 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -7706,6 +7706,10 @@ namespace BinaryNinja {
{
return name < other.name;
}
+ bool operator==(const QualifiedNameAndType& other) const
+ {
+ return name == other.name && type == other.type;
+ }
};
struct TypeAndId