什么是C ++ 03标准中的“第10条”?(What is “clause 10” in the C++03 standard?)

编程入门 行业动态 更新时间:2024-10-18 20:28:55
什么是C ++ 03标准中的“第10条”?(What is “clause 10” in the C++03 standard?)

我正在阅读C ++ 03标准,并注意到“第10章”的用法。 例:

8.5.1聚合[dcl.init.aggr]

聚合是没有用户声明的构造函数(12.1),没有私有或受保护的非静态数据成员(第11节),没有基类(第10节) ,也没有虚函数(10.3 的数组或类(第9节) )。

还有第9条和第11条。这是什么意思,它是指标准中的其他部分?

I was reading through the C++03 standard and noticed the usage of "Clause 10". Example:

8.5.1 Aggregates [dcl.init.aggr]

An aggregate is an array or a class (clause 9) with no user-declared constructors (12.1), no private or protected non-static data members (clause 11), no base classes (clause 10), and no virtual functions (10.3).

There is also Clause 9 and Clause 11. What does this mean, is it referring to some other section in the standard?

最满意答案

该条款是最高层次的东西,即第10条是第10条。 非正式地将这些人称为“部分”,但标准将其称为“子句”。

The clause is the topmost hierarchical thingy, i.e., clause 10 is §10. Informally people refer to those as "sections", but the standard calls them "clauses".

更多推荐

本文发布于:2023-07-23 18:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标准   standard   clause

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!