mirror of
https://github.com/Z3Prover/z3
synced 2026-02-15 13:21:50 +00:00
Optimize push_back with std::move for std::make_pair in 6 files
Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
This commit is contained in:
parent
d68c51f6e7
commit
d88c766479
6 changed files with 27 additions and 27 deletions
|
|
@ -93,7 +93,7 @@ struct pb2bv_rewriter::imp {
|
|||
void sort_args() {
|
||||
vector<ca> cas;
|
||||
for (unsigned i = 0; i < m_args.size(); ++i) {
|
||||
cas.push_back(std::make_pair(m_coeffs[i], expr_ref(m_args.get(i), m)));
|
||||
cas.push_back(std::move(std::make_pair(m_coeffs[i], expr_ref(m_args.get(i), m))));
|
||||
}
|
||||
std::sort(cas.begin(), cas.end(), compare_coeffs());
|
||||
m_coeffs.reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue