Item31: Minimize compilation dependencies between files.(Effective C++)
2011-03-31 23:52
369 查看
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 templates are involved.
Library header files should exist in full and declaration-only forms. This applies regardless of whether templates are involved.
相关文章推荐
- 条款31:将文件间的编译依存关系降至最低(Minimize compilation dependencies between files)
- *Effective C++ 31. Minimize complilation dependencies between files(handle class & interface class)
- Item 6:Distinguish between prefix and postfix forms of increment and decrement operators.(More Effective C++)
- Effective JavaScript Item 31 优先使用Object.getPrototypeOf,而不是__proto__
- Effective Java 英文 第二版 读书笔记 Item 13:Minimize the accessibility of classes and members
- Item 27: Minimize casting.(Effective C++)
- Item 1:Distinguish between pointers and references.(More Effective C++)
- Effective C# Item 31: Prefer Small, Simple Functions
- Effective JavaScript Item 31 优先使用Object.getPrototypeOf,而不是__proto__
- Item 34: Differentiate between inheritance of interface and inheritance of implementation(Effective C++)
- [翻译] Effective C++, 3rd Edition, Item 31: 最小化文件之间的 compilation dependencies(编译依赖)(上)
- Effective C# Item 20: Distinguish Between Implementing Interfaces and Overriding Virtual Functions
- Effective C# Item 6: Distinguish Between Value Types and Reference Types
- [翻译] Effective C++, 3rd Edition, Item 31: 最小化文件之间的 compilation dependencies(编译依赖)(下)
- 读书笔记 effective c++ Item 31 把文件之间的编译依赖降到最低
- Effective C++ Item 34 Differentiate between inheritance of interface and inheritance of implementation
- Effective C++ Item 31 降低文件间编译依存关系
- Item 31: Making functions virtual with respect to more than one object.(More Effective C++)
- Item 31:最小化文件之间的编译依赖 Effective C++笔记
- Item 14:资源管理类要特别注意拷贝行为 Effective C++笔记