Closed shahzadlone closed 5 years ago
Where the performance can be improved by using emplace_back over push_back we should do it.
emplace_back
push_back
Here is a handy video from Scott Meyers: https://www.youtube.com/watch?v=smqT9Io_bKo Start from 21mins if in rush otherwise entire video is very helpful!
Done. See 8-emplace_back
Where the performance can be improved by using
emplace_back
overpush_back
we should do it.Here is a handy video from Scott Meyers: https://www.youtube.com/watch?v=smqT9Io_bKo Start from 21mins if in rush otherwise entire video is very helpful!