+ 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!

6th May 2017, 3:38 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
2 Answers
6th May 2017, 4:17 AM
Karl T.
Karl T. - avatar
+ 3
@Helioform Understood the topic completely... Thank You!
6th May 2017, 4:46 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar