bool compareWithoutAddress(const InstructionPointer &other) const
{
- return std::make_tuple(moduleIndex, functionIndex, fileIndex, line)
- < std::make_tuple(other.moduleIndex, other.functionIndex, other.fileIndex, other.line);
+ return std::tie(moduleIndex, functionIndex, fileIndex, line)
+ < std::tie(other.moduleIndex, other.functionIndex, other.fileIndex, other.line);
}
bool equalWithoutAddress(const InstructionPointer &other) const
{
- return std::make_tuple(moduleIndex, functionIndex, fileIndex, line)
- == std::make_tuple(other.moduleIndex, other.functionIndex, other.fileIndex, other.line);
+ return std::tie(moduleIndex, functionIndex, fileIndex, line)
+ == std::tie(other.moduleIndex, other.functionIndex, other.fileIndex, other.line);
}
};
uint64_t allocations;
bool operator<(const CountedAllocationInfo& rhs) const
{
- return make_tuple(info.size, allocations) < make_tuple(rhs.info.size, rhs.allocations);
+ return tie(info.size, allocations)
+ < tie(rhs.info.size, rhs.allocations);
}
};
vector<CountedAllocationInfo> allocationInfoCounter;
bool operator<(const Module& module) const
{
- return make_tuple(addressStart, addressEnd, moduleIndex)
- < make_tuple(module.addressStart, module.addressEnd, module.moduleIndex);
+ return tie(addressStart, addressEnd, moduleIndex)
+ < tie(module.addressStart, module.addressEnd, module.moduleIndex);
}
bool operator!=(const Module& module) const
{
- return make_tuple(addressStart, addressEnd, moduleIndex)
- != make_tuple(module.addressStart, module.addressEnd, module.moduleIndex);
+ return tie(addressStart, addressEnd, moduleIndex)
+ != tie(module.addressStart, module.addressEnd, module.moduleIndex);
}
uintptr_t addressStart;