3.1 - [basic.def] - 【基本.定义】

请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。

3 Basic concepts [basic]

3.1 Declarations and definitions [basic.def]

 

3 基本概念 【基本】

3.1 声明和定义 【基本.定义】

 

A declaration (clause 7) introduces names into a translation unit or redeclares names introduced by previous declarations. A declaration specifies the interpretation and attributes of these names.

 

声明(章节 7)向翻译单元引入名字,或重新声明之前声明的名字。声明指定了这些名字的解释和性质。

 

A declaration is a definition unless it declares a function without specifying the function's body (8.4), it contains the extern specifier (7.1.1) or a linkage-specification24) (7.5) and neither an initializer nor a function-body, it declares a static data member in a class declaration (9.4), it is a class name declaration (9.1), or it is a typedef declaration (7.1.3), a using-declaration (7.3.3), or a using-directive (7.3.4).

 

声明就是定义,除非其声明函数但没有指定函数体(8.4),其包含 extern 限定词(7.1.1)或连接性规范24)(7.5)但没有初始化符或函数体,其在类声明(9.4)中声明静态数据成员,其为一个类名声明(9.1),或其为 typedef 声明(7.1.3),using-声明(7.3.3),或 using-指令(7.3.4)。

 

[Example: all but one of the following are definitions:

<

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值