Possible duplicate:
What does T&& do in C ++ 0x?
I have never seen a double ampersand before reading this answer .
This piece of code looks like this:
template <typename T> T& as_lvalue(T&& x) { return x; }
What does && do? What parameters can be passed to as_lvalue()
c ++ reference c ++ 11 rvalue-reference
paperjam
source share