notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

Rvalue.md (244B)


      1 # rvalue
      2 
      3 cs202 W14 L16
      4 
      5 **Definition:** An rvalue is a temporary value that can be moved. 
      6 
      7 These values can't be on the left side of an assignment think 
      8 
      9 ```cpp
     10 
     11 int y = 4 + 7; // 4 + 7 is an rvalue
     12 int z = x + y; // x + y is an rvalue
     13 
     14 ```