Codechange: Emplace std::pair into vectors.

This creates the pair in the vector, instead of creating it then copying it in.
This commit is contained in:
Peter Nelson
2024-04-20 02:48:56 +01:00
committed by Peter Nelson
parent ed2db80990
commit 40fa45a76a
7 changed files with 8 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ public:
}
/* Insert new item. */
this->data.push_front(std::make_pair(key, item));
this->data.emplace_front(key, item);
this->lookup.emplace(key, this->data.begin());
}