+ 8
[Answered] What are the benefits of passing an argument as an rvalue?
For example, we have the following function declaration: int func(int&& rval_arg); What could I do with this rvalue parameter, that I can't do with a regular one? When should I use it?
3 Antworten
+ 5
Mihir Lalwani AS well AS a regular lvalue reference.
Anyways, I got an in depth answer in another place, so I can close this question
+ 2
You can change the value of it by passing as argument..
+ 2
Okay