3 ms·
I kinda disagree with advise. Use emplace when you're passing args to the constructor. Saying to use push back for day to day use either says that you don't enc
by knorker 2y ago
I kinda disagree with advise. Use emplace when you're passing args to the constructor. Saying to use push back for day to day use either says that you don't encounter this day to day (you probably do), or that you shouldn't bother understanding the difference. You should.