News for hackers. Stuff that matters.
Re:Don’t blindly prefer emplace_back to push_back by xKingfisher on Thursday March 04, 2021 @07:23AM (#26341456)
It's definitely a lot to process.

I found these two articles really helpful when trying to understand moves:

https://abseil.io/tips/55 https://abseil.io/tips/77

Though I'd also say don't worry about it too much, especially at first. If you're copying a lot of temporary objects moving can get you some performance wins, but that's something profiling should be telling you m

Re:Don’t blindly prefer emplace_back to push_back by jeffbee on Thursday March 04, 2021 @11:57AM (#26344848)
Authors should also try to be aware that for some types there's not a meaningful difference between copy construction and move construction.