+ 2
What is 'rvalue reference'?
I recently came about the topic 'Move Constructor', which is used to move data to a new object from a temporary source, and the source loses the data... Its syntax is : Class_Name::Class_Name(Class_Name&&){} Where && is defined as rvalue reference... I wasn't able to fully understand what the book meant by that. Can anyone help? Please!
2 Answers
+ 8
Here's some explanation I have found:
http://www.cprogramming.com/c++11/rvalue-references-and-move-semantics-in-c++11.html
+ 3
@Helioform
Understood the topic completely...
Thank You!