Better readability and optimization insertion into container by replacing 'insert' -> 'emplace', 'push_back' -> 'emplace_back'

This commit is contained in:
lainon committed 2022-09-30 12:35:28 +03:00
1 parent c953bf7fc7
commit 3cdf72b68b
20 files changed
+49 -49

No files matched your search

+1 -1
View File
@@ -230,7 +230,7 @@ public:
MipsCallManager() : idGen_(0) {}
u32 add(MipsCall *call) {
u32 id = genId();
calls_.insert(std::pair<int, MipsCall *>(id, call));
calls_.emplace(id, call);
return id;
}
MipsCall *get(u32 id) {