AI Features

Rvalue and Lvalue References

In this lesson, we will discuss rvalue and lvalue references.

Rvalues and Lvalues

Rvalues are

  • Temporary objects
  • Objects without a name
  • Objects from which we can not get the address

If one of these characteristics holds for an object, it is an rvalue. On the other hand, ...