Skip to content

Commit

Permalink
🎨 emplace_back instead of push_back
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <[email protected]>
  • Loading branch information
burgholzer committed Nov 28, 2024
1 parent 124d2cc commit f506140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mqt-core/ir/QuantumComputation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class QuantumComputation {
for (decltype(RegisterType::second) i = 0; i < reg.second.second.second;
i++) {
ss << reg.second.first << "[" << i << "]";
regnames.push_back(std::make_pair(reg.second.first, ss.str()));
regnames.emplace_back(reg.second.first, ss.str());
ss.str(std::string());
}
}
Expand Down

0 comments on commit f506140

Please sign in to comment.