Perfect forwarding in C++

Previous: Forwarding references in C++

Perfect forwarding is a technique where a forwarding reference is passed to another function using std::forward. This action preserves the value category of the original argument allowing for proper semantics to be invoked and compiler optimization.