T&& (double ampersand) in C++11

In this article, we have explored the idea of T&& (double ampersand) in C++11. T&& was firstly introduced in the C++ 11 standard which declares an rvalue reference.

References

There two value references-

lvalue referencervalue reference

"L" stands for left in lvalue reference and "R" stands for right in rvalue reference.The thing to remember is that these are properties of expressions and not objects.

lvalue continue to exists beyond a expression while rvalue till an expression ends baecause ...

 •  0 comments  •  flag
Share on Twitter
Published on April 14, 2022 13:17
No comments have been added yet.