Move in C++ without a std::move
- In one of my earlier posts, Why you should use std::move only rarely I said that you should use std::move only rarely.
- In today's post, I would like to show you the benefits of this advice: best performance by default.
- Return value optimizationOne of the worst enemies for performance are unnecessary copy operations.
Unverified
- In one of my earlier posts, Why you should use std::move only rarely I said that you should use std::move only rarely.
- In today's post, I would like to show you the benefits of this advice: best performance by default.
- Return value optimizationOne of the worst enemies for performance are unnecessary copy operations.
Sources: Andreasfertig