What is reference collapsing?
Show answer and explanation
Reference collapsing reduces nested reference formation to one reference: any combination containing & becomes &, and only && combined with && remains &&. This is what lets forwarding references preserve the caller's value category.
Reference collapsing reduces nested reference formation to one reference: any combination containing & becomes &, and only && combined with && remains &&. This is what lets forwarding references preserve the caller's value category.
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.