摘要: http://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.html 之前有文章介绍过临时对象和返回值优化RVO方面的问题。见此处。 在C++中,返回对象这一点经常被诟病,因为这个地方的效率比较低,需要进行很多的操作,生成一些临时对象,如果对象 阅读全文
posted @ 2017-03-02 20:19 穆穆兔兔 阅读(635) 评论(0) 推荐(0) 编辑
摘要: you can get the pointer of the method, but it has to be called with an object If you need to have non-object pointer and you want to use object then y 阅读全文
posted @ 2017-03-02 11:43 穆穆兔兔 阅读(311) 评论(0) 推荐(0) 编辑