Implementation Challenge: Replacing std::move and std::forward
When C++11 introduced move semantics, it also added two important helper functions: std::move
and std::forward
.
They are essential when you want to manually indicate that you no longer care about an object or need to propagate the value category in generic code.
As such, I’ve used them countless times in the past.
However, they are functions. Plain, old, standard library functions.
This is problematic for multiple reasons.
» read more »