In C++, what is temporary allocation and when is it used?
Does such a thing even exist?
It was mentioned in the TA’s course notes, but I couldn’t find any info about it…
In C++, what is temporary allocation and when is it used? Does such a
Share
When people say “temporaries” they often refer to rvalues. That is objects created and not bound to a variable name, thus not living outside the current statement. IE:
The created Object() is an rvalue which you may hear referred to as a temporary.