News for hackers. Stuff that matters.
Re:Don’t blindly prefer emplace_back to push_back by xuhu on Thursday March 04, 2021 @08:57AM (#26342447)
When adding items to maps it becomes less obvious (when learning from examples at least) whether map.emplace({Key(args), Value(args)}) avoids copies for Key, Value, pair<Key, Value>, or all of them.

There are no comments on this comment yet.