diff options
Diffstat (limited to 'tools/aapt2/Resource.h')
-rw-r--r-- | tools/aapt2/Resource.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/Resource.h b/tools/aapt2/Resource.h index f928acd7c8d7..31104fbe91b6 100644 --- a/tools/aapt2/Resource.h +++ b/tools/aapt2/Resource.h @@ -130,6 +130,7 @@ struct ResourceId { uint8_t typeId() const; uint16_t entryId() const; bool operator<(const ResourceId& rhs) const; + bool operator==(const ResourceId& rhs) const; }; // @@ -178,6 +179,10 @@ inline bool ResourceId::operator<(const ResourceId& rhs) const { return id < rhs.id; } +inline bool ResourceId::operator==(const ResourceId& rhs) const { + return id == rhs.id; +} + inline ::std::ostream& operator<<(::std::ostream& out, const ResourceId& resId) { std::ios_base::fmtflags oldFlags = out.flags(); |