What is the difference between universal and rvalue references?
Show answer and explanation
T&& is a forwarding reference only when T is cv-unqualified and deduced in that context (or for a corresponding auto&&). Otherwise it is an ordinary rvalue reference that binds to rvalues; the distinction controls reference collapsing and forwarding.
T&& is a forwarding reference only when T is cv-unqualified and deduced in that context (or for a corresponding auto&&). Otherwise it is an ordinary rvalue reference that binds to rvalues; the distinction controls reference collapsing and forwarding.
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.