Don’t blindly prefer emplace_back to push_back
https://quuxplusone.github.io/blog/2021/03/03/push-back-emplace-back/ [quuxplusone.github.io]
2025-01-03 08:11
I recommend sticking with push_back for day-to-day use. You should definitely use emplace_back when you need its particular set of skills — for example, emplace_back is your only option when dealing with a deque<mutex> or other non-movable type — but push_back is the appropriate default.