腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
C++核心准则原文翻译
专栏作者
举报
465
文章
264077
阅读量
44
订阅数
订阅专栏
申请加入专栏
全部文章(465)
c++(211)
编程算法(91)
https(60)
python(53)
网络安全(53)
gui(37)
linux(32)
es(18)
ide(17)
网站(13)
打包(12)
git(11)
github(11)
html(10)
开源(10)
function(9)
http(8)
express(7)
容器(7)
class(7)
this(7)
java(6)
javascript(6)
c#(6)
jquery ui(6)
access(6)
serverless(6)
缓存(6)
小程序(6)
node.js(5)
code(5)
object(5)
对象存储(4)
腾讯云测试服务(4)
gcc(4)
uml(4)
微信(4)
迁移(4)
auto(4)
behavior(4)
default(4)
error(4)
handle(4)
local(4)
types(4)
unsigned(4)
其他(3)
单片机(3)
数据库(3)
ubuntu(3)
数据分析(3)
腾讯云开发者社区(3)
constructor(3)
copy(3)
crash(3)
data(3)
exception(3)
exit(3)
list(3)
overflow(3)
templates(3)
thread(3)
using(3)
ios(2)
xml(2)
android(2)
sql(2)
eclipse(2)
api(2)
文件存储(2)
vr 视频解决方案(2)
underscore(2)
面向对象编程(2)
socket编程(2)
arguments(2)
bit(2)
bug(2)
constants(2)
containers(2)
declaration(2)
embedded(2)
goto(2)
implementation(2)
integer(2)
io(2)
it(2)
member(2)
modulo(2)
nested(2)
point(2)
reference(2)
scope(2)
sizeof(2)
time(2)
ui(2)
variables(2)
void(2)
布局(2)
事件(2)
通信(2)
php(1)
go(1)
actionscript(1)
css(1)
jquery(1)
json(1)
硬件开发(1)
unix(1)
apache(1)
图像处理(1)
存储(1)
ssh(1)
数据结构(1)
abstract(1)
add(1)
algorithm(1)
allocation(1)
arrays(1)
block(1)
break(1)
button(1)
case(1)
center(1)
character(1)
cin(1)
combinations(1)
comments(1)
compatibility(1)
compilation(1)
composition(1)
constraints(1)
container(1)
core(1)
cout(1)
debug(1)
delegates(1)
diagram(1)
division(1)
effects(1)
evaluation(1)
file(1)
flush(1)
grammar(1)
heap(1)
image(1)
implicit(1)
indentation(1)
input(1)
int(1)
interface(1)
line(1)
literals(1)
lock(1)
matrix(1)
media(1)
memory(1)
message(1)
monitor(1)
mutex(1)
namespaces(1)
operators(1)
output(1)
overloading(1)
parentheses(1)
pointers(1)
pool(1)
private(1)
project(1)
protected(1)
range(1)
require(1)
reset(1)
rules(1)
sharing(1)
size(1)
slice(1)
src(1)
surface(1)
table(1)
typedef(1)
undefined(1)
unique(1)
view(1)
zero(1)
地图(1)
定时器(1)
接口(1)
异步(1)
语法(1)
指针(1)
搜索文章
搜索
搜索
关闭
UML2.51边译边学-组件
linux
本文是UML规范2.5.1中组件相关部分中文翻译。原文可从https://www.omg.org/spec/UML/2.5.1下载。
面向对象思考
2021-10-14
456
0
UML2.51边译边学-部署图
linux
面向对象编程
python
本文是UML规范2.5.1中部署图相关部分中文翻译。原文可从https://www.omg.org/spec/UML/2.5.1下载。
面向对象思考
2021-10-14
477
0
C++核心准则讨论:析构,释放和交换操作必须永不失败
c++
linux
Never allow an error to be reported from a destructor, a resource deallocation function (e.g., operator delete), or a swap function using throw. It is nearly impossible to write useful code if these operations can fail, and even if something does go wrong it nearly never makes any sense to retry. Specifically, types whose destructors might throw an exception are flatly forbidden from use with the C++ Standard Library. Most destructors are now implicitly noexcept by default.
面向对象思考
2020-12-15
628
0
C++核心准则NL.16:使用常规的类成员声明顺序
access
linux
vr 视频解决方案
A conventional order of members improves readability.
面向对象思考
2020-12-15
646
0
C++核心准则NL.10:首选下划线风格名称
underscore
javascript
c++
linux
The use of underscores to separate parts of a name is the original C and C++ style and used in the C++ Standard Library.
面向对象思考
2020-11-26
389
0
C++核心准则:注释风格
编程算法
linux
android
Compilers do not read comments. Comments are less precise than code. Comments are not updated as consistently as code.
面向对象思考
2020-11-26
443
0
C++核心准则GSL.view:视图
linux
编程算法
These types allow the user to distinguish between owning and non-owning pointers and between pointers to a single object and pointers to the first element of a sequence.
面向对象思考
2020-11-16
470
0
C++核心准则NR.3:不要拒绝使用异常
linux
There seem to be four main reasons given for not using exceptions:
面向对象思考
2020-11-10
450
0
C++核心准则NR.1:不要坚持所有声明都应该放在函数顶部
编程算法
ide
linux
The "all declarations on top" rule is a legacy of old programming languages that didn't allow initialization of variables and constants after a statement. This leads to longer programs and more errors caused by uninitialized and wrongly initialized variables.
面向对象思考
2020-11-10
390
0
C++核心准则Pro.safety:类型安全准则群组
c++
linux
This profile makes it easier to construct code that uses types correctly and avoids inadvertent type punning. It does so by focusing on removing the primary sources of type violations, including unsafe uses of casts and unions.
面向对象思考
2020-11-10
556
0
C++核心准则SL.str.3:使用zstring或czstring引用C风格0结尾的字符串序列
c++
编程算法
linux
Readability. Statement of intent. A plain char* can be a pointer to a single character, a pointer to an array of characters, a pointer to a C-style (zero-terminated) string, or even to a small integer. Distinguishing these alternatives prevents misunderstandings and bugs.
面向对象思考
2020-10-30
682
0
C++核心准则SL.con.1:标准库array或vector好于C数组
编程算法
c++
linux
C arrays are less safe, and have no advantages over array and vector. For a fixed-length array, use std::array, which does not degenerate to a pointer when passed to a function and does know its size. Also, like a built-in array, a stack-allocated std::array keeps its elements on the stack. For a variable-length array, use std::vector, which additionally can change its size and handles memory allocation.
面向对象思考
2020-10-30
555
0
C++核心准则SF.6:(只)为转换,基础库或在局部作用域内部使用using namspace指令
c++
c#
linux
编程算法
SF.6: Use using namespace directives for transition, for foundation libraries (such as std), or within a local scope (only)
面向对象思考
2020-10-10
456
0
C++核心准则SF.3:使用.h文件管理所有在多个源文件中使用的声明
linux
SF.3: Use .h files for all declarations used in multiple source files
面向对象思考
2020-10-10
816
0
C++核心准则T.42:使用模板别名简化记法并隐藏实现细节
linux
c++
Improved readability. Implementation hiding. Note that template aliases replace many uses of traits to compute a type. They can also be used to wrap a trait.
面向对象思考
2020-09-10
486
0
C++核心准则T.20:避免定义没有明确语义的“概念”
python
linux
T.20: Avoid "concepts" without meaningful semantics
面向对象思考
2020-08-27
375
0
C++核心准则Con.3:默认情况下,传递参照常量的指针或引用
linux
To avoid a called function unexpectedly changing the value. It's far easier to reason about programs when called functions don't modify state.
面向对象思考
2020-08-18
397
0
C++核心准则Con.2:默认情况下,将成员函数定义为const类型
linux
access
编程算法
A member function should be marked const unless it changes the object's observable state. This gives a more precise statement of design intent, better readability, more errors caught by the compiler, and sometimes more optimization opportunities.
面向对象思考
2020-08-18
662
0
C++核心准则E.28:避免基于全局状态的错误处理(例如errno)
linux
E.28: Avoid error handling based on global state (e.g. errno)
面向对象思考
2020-08-13
308
0
C++核心准则E.27:如果无法抛出异常,系统化运用错误处理代码
c++
linux
E.27: If you can't throw exceptions, use error codes systematically
面向对象思考
2020-08-13
470
0
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档