首页
学习
活动
专区
工具
TVP
发布

C++核心准则原文翻译

专栏成员
465
文章
278967
阅读量
44
订阅数
C++核心准则SF.11​:头文件应该可以独立工作​
Usability, headers should be simple to use and work when included on their own. Headers should encapsulate the functionality they provide. Avoid clients of a header having to manage that header's dependencies.
面向对象思考
2020-10-30
3670
C++核心准则SF.6:(只)为转换,基础库或在局部作用域内部使用using namspace指令
SF.6: Use using namespace directives for transition, for foundation libraries (such as std), or within a local scope (only)
面向对象思考
2020-10-10
4740
C++核心准则SF.5: .cpp文件必须包含定义它接口的.h文件
SF.5: A .cpp file must include the .h file(s) that defines its interface
面向对象思考
2020-10-10
5370
C++核心准则SF.4:在其他声明之前include .h文件
Minimize context dependencies and increase readability.
面向对象思考
2020-10-10
4710
C++核心准则SF.1:如果你的项目没有正在遵从的其他习惯,为代码文件使用.cpp后缀,为接口文件使用.h后缀
SF.1: Use a .cpp suffix for code files and .h for interface files if your project doesn't already follow another convention
面向对象思考
2020-10-10
5930
C++核心准则T.60:最小化模板对上下文的依赖
T.60: Minimize a template's context dependencies
面向对象思考
2020-09-21
2730
没有更多了
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档