C++ perfect forwarding

When you want to forward arguments to template function/method without changing the value category

Perfect forwarding

refers to a template function or method which passes arguments

  • 2. preserving the const qualifier and lvalue/rvalue category

std::move( ) vs std::forward( )

std::move