replace push_back by emplace_back where possible

This commit is contained in:
Konstantinos Margaritis
2021-03-26 12:39:40 +02:00
parent 1cdb7312cb
commit 3f35a2be37
92 changed files with 535 additions and 535 deletions

View File

@@ -150,7 +150,7 @@ u32 calc_min_dist_from_bob(raw_dfa &raw, vector<u32> *dist_in) {
continue;
}
if (dist[t] == ~0U) {
to_visit.push_back(t);
to_visit.emplace_back(t);
dist[t] = d + 1;
} else {
assert(dist[t] <= d + 1);