What does std::forward forward?
Show answer and explanation
std::forward<T> conditionally casts a forwarding-reference argument according to deduced T, preserving whether the original caller supplied an lvalue or rvalue. Use it only with the matching deduced template parameter.
std::forward<T> conditionally casts a forwarding-reference argument according to deduced T, preserving whether the original caller supplied an lvalue or rvalue. Use it only with the matching deduced template parameter.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.