Ray's playground

 

2011年3月31日

Item31: Minimize compilation dependencies between files.(Effective C++)

摘要: The general idea behind minimizing compilation dependencies is to depend on declarations instead of definitions. Two approaches based on this idea are Handle classes and Interface classes. Library header files should exist in full and declaration-only forms. This applies regardless of whether templ. 阅读全文

posted @ 2011-03-31 23:52 Ray Z 阅读(208) 评论(0) 推荐(0) 编辑

Item 30: Understand the ins and outs of inlining.(Effective C++)

摘要: 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. 阅读全文

posted @ 2011-03-31 14:11 Ray Z 阅读(180) 评论(0) 推荐(0) 编辑

导航