Facebook
From Torrid Ostrich, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 284
  1. Initialize a
  2. Inside get_test()
  3. 0(effective: 0): Int constructor with value 5
  4. Pass by copy
  5. 1(effective: 1): Copy constructor with id 0
  6. Took by copy
  7. 1(effective: 1): Destructor
  8. Pass by ref
  9. Took by ref
  10. Pass by move
  11. Took by rval
  12. Initializing b
  13. 2(effective: 2): Int constructor with value 7
  14. Move to c
  15. 2(effective: 3): Move constructor with id 2
  16. Ref to d
  17. Copy by ref to e
  18. 4(effective: 4): Copy constructor with id 2
  19. Copy by rval to f
  20. 4(effective: 5): Move constructor with id 4
  21. Getting by move
  22. Inside get_move()
  23. 6(effective: 6): Int constructor with value 7
  24. 6(effective: 6): Destructor
  25. 6(effective: 7): Move constructor with id 6
  26. 6(effective: 7): Destructor
  27. 4(effective: 5): Destructor
  28. 4(effective: 4): Destructor
  29. 4(effective: 4): After move
  30. 2(effective: 3): Destructor
  31. 2(effective: 2): Destructor
  32. 2(effective: 2): After move
  33. 0(effective: 0): Destructor
  34.