Verified Commit f41e6811 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

use emplace instead of insert and emplace_back instead of push_back

parent 84104a69
Pipeline #858 passed with stage
in 1 minute and 54 seconds
......@@ -3633,8 +3633,8 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
for (auto & it : pac_eqtag_and_lag)
if (for_writing.find(it.first.first) == for_writing.end())
for_writing.insert(pair<string,vector<pair<string,string>> >(it.first.first, vector<pair<string,string>>()));
for_writing[it.first.first].push_back({it.first.second, it.second.first});
for_writing.emplace(it.first.first, vector<pair<string, string>>());
for_writing[it.first.first].emplace_back(it.first.second, it.second.first);
for (auto & it : for_writing)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment