Skip to content

Commit

Permalink
std::tie
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Nov 25, 2023
1 parent 8d8bdc5 commit 63d88db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1582,11 +1582,7 @@ namespace {
nonneg int operand1;
nonneg int operand2;
bool operator<(const ExprIdKey& k) const {
if (operand1 != k.operand1)
return operand1 < k.operand1;
if (operand2 != k.operand2)
return operand2 < k.operand2;
return parentOp < k.parentOp;
return std::tie(parentOp, operand1, operand2) < std::tie(k.parentOp, k.operand1, k.operand2);
}
};
using ExprIdMap = std::map<ExprIdKey, nonneg int>;
Expand Down

0 comments on commit 63d88db

Please sign in to comment.