上QQ阅读APP看书,第一时间看更新
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