Item 20:Facilitate the return value optimization.(More Effective C++)
The rules for C allow compilers to optimize temporary objects out of existence. As a result, if you call operator* in a
7月前290
The rules for C allow compilers to optimize temporary objects out of existence. As a result, if you call operator* in a
理解引用计数 Objective-C 使用引用计数来管理内存:每个对象都有个可以递增或递减的计数器。如果想使某个对象继续存活,那就递增其引用计数:用完了之后