Skip to content

Commit 80ff08a

Browse files
committed
Added operator less for class argidx_and_tokennamet.
1 parent 90453f4 commit 80ff08a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/taint-slicer/propagation_chains.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ class argidx_and_tokennamet
4949
int argidx;
5050
taint_tokent::namet tokenname;
5151
};
52+
inline bool operator<(
53+
const argidx_and_tokennamet &l, const argidx_and_tokennamet &r)
54+
{
55+
return std::make_pair(l.get_argidx(), l.get_token_name())<
56+
std::make_pair(r.get_argidx(), r.get_token_name());
57+
}
5258
std::ostream &operator<<(std::ostream &ostr, const argidx_and_tokennamet &atp);
5359

5460
/*******************************************************************\

0 commit comments

Comments
 (0)