Guaranteed lifetime of temporary in C++?

后端 未结 5 2023
天涯浪人
天涯浪人 2020-11-22 12:22

Does C++ provide a guarantee for the lifetime of a temporary variable that is created within a function call but not used as a parameter? Here\'s an example class:

5条回答
提交回复
热议问题