- Hands-On High Performance Programming with Qt 5
- Marek Krajewski
- 61字
- 2021-07-02 13:53:58
Temporaries
The old C++ was haunted by temporaries—intermediate objects that were created by a compiler only to serve as sources of data and were immediately discarded, eating away at performance. Temporaries can emerge in two places:
- When returning data by value from a function
- When converting from one class into another while passing a parameter to a function