摘要:
参考自: https://blog.csdn.net/RUN32875094/article/details/78462718 一般的函数返回的对象是个临时对象, 在返回赋值语句完成后就会析构; 部分情况不会产生临时对象 1 #include <iostream> 2 class aaa 3 { 4 阅读全文
posted @ 2020-04-23 09:58 talenth 阅读(1495) 评论(0) 推荐(0)
|
|
|
|
摘要:
参考自: https://blog.csdn.net/RUN32875094/article/details/78462718 一般的函数返回的对象是个临时对象, 在返回赋值语句完成后就会析构; 部分情况不会产生临时对象 1 #include <iostream> 2 class aaa 3 { 4 阅读全文
posted @ 2020-04-23 09:58 talenth 阅读(1495) 评论(0) 推荐(0) |
|