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 27, 2024
1 parent 6e81127 commit 9b64a26
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 9b64a26

Please sign in to comment.