Item 30: Understand the ins and outs of inlining.(Effective C++)
时间:2011-03-31 来源:Ray Z
-
Limit most inlining to small, frequently called functions. This facilitates debugging and binary upgradability, minimizes potential code bloat, and maximizes the chances of greater program speed.
-
Don't declare function templates inline just because they appear in header files.
相关阅读 更多 +