Skip to content

Commit 6701a38

Browse files
committed
proposal
1 parent c9782a9 commit 6701a38

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/common/Utilities/EventMap.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ class TC_COMMON_API EventMap
4040
{
4141
}
4242

43+
bool operator<(Event const& other) const
44+
{
45+
if (_id != other._id)
46+
return _id < other._id;
47+
if (_groupMask != other._groupMask)
48+
return _groupMask < other._groupMask;
49+
return _phaseMask < other._phaseMask;
50+
}
51+
4352
EventId _id = 0u;
4453
GroupMask _groupMask = 0u;
4554
PhaseMask _phaseMask = 0u;

0 commit comments

Comments
 (0)