This question is so common it immediately got triple-digit upvotes on the question and answer:
What does T&& mean in C++11?
I've been looking into some of the new features of C++11 and one I've noticed is the double ampersand in declaring variables, like
T&& var
.
For a start, what is this beast called? I wish Google would allow us to search for punctuation like this.
What exactly does it mean?
At first glance, it appears to be a double reference (like the C-style double pointers
T** var
), but I'm having a hard time thinking of a use case for that.
Add a Comment
Comments are closed.