开发者

performance considerations when moving member functions that are used only by one other member function and making them local functions?

Are there performance considerations when moving member functions of a class that are used only by one othe开发者_Go百科r member function of that class and making them local functions at the start of the function they are being used by instead?

http://www.flipcode.com/archives/Local_Functions_In_C.shtml


No, there's not. It's just a normal function call.

It's worth mentioning that you can't use local structs or classes as template arguments, so if you were thinking of using them for STL comparators then forget it :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜