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

C++核心准则原文翻译

专栏作者
465
文章
264094
阅读量
44
订阅数
自学鸿蒙应用开发(33)- 在布局中使用自定义UI组件
组建容器类ArcProgressBarContainer负责协调每个ArcProgressBar的描画动作。
面向对象思考
2021-03-16
8450
C++核心准则讨论:如果一个类是一个容器,请为其提供一个initializer-list构造函数
It is common to need an initial set of elements.
面向对象思考
2020-12-31
4310
C++核心准则​​SL.con.2:除非有理由使用其他容器,默认使用STL vector
vector and array are the only standard containers that offer the following advantages:
面向对象思考
2020-10-30
3760
C++核心准则​T.143:避免无意中编写非通用代码
T.143: Don't write unintentionally non-generic code
面向对象思考
2020-10-10
2750
C++核心准则T.3:使用模板表现容器和范围
Containers need an element type, and expressing that as a template argument is general, reusable, and type safe. It also avoids brittle or inefficient workarounds. Convention: That's the way the STL does it.
面向对象思考
2020-08-27
2320
C++核心准则ES.1: 标准库好于其他库和手写代码
ES.1: Prefer the standard library to other libraries and to "handcrafted code"
面向对象思考
2020-04-16
3760
C++核心准则C.101:赋予容器值语义‍
If meaningful, make a container Regular (the concept). In particular, ensure that an object compares equal to its copy.
面向对象思考
2020-03-25
2770
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档