Skip to content
Snippets Groups Projects
Verified Commit 5d1264e2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Optimization: use a move_iterator

parent ee8ee7c2
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
inline void add(int eqn, map<string, string> tags) inline void add(int eqn, map<string, string> tags)
{ {
if (eqn_tags.contains(eqn)) if (eqn_tags.contains(eqn))
eqn_tags[eqn].insert(tags.begin(), tags.end()); eqn_tags[eqn].insert(move_iterator{tags.begin()}, move_iterator{tags.end()});
else else
eqn_tags[eqn] = move(tags); eqn_tags[eqn] = move(tags);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment