Arthur O'Dwyer personal blog
Don’t blindly prefer emplace_back to push_back
In one of my recent training courses, a student informed me that both clang-tidy and PVS-Studio were complaining about some code of the form
- Points
- 178
- HN comments
- 247
- Submissions
- 2
- Cited by
- 0 commenters
Software EngineeringProgramming Languages2021
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Mar 4, 2021 | Don’t blindly prefer emplace_back to push_back by todsacerdoti | 178 | 140 |
| Jul 28, 2024 | Don't blindly prefer `emplace_back` to `push_back` (2021) by fanf2 | 150 | 107 |