简体   繁体   English

除了内部/外部链接之外,类型是否仅具有“链接”?

[英]Does a type just have 'linkage' other than internal/external linkage?

3.5 [basic.link] paragraph 8 from N4567 says that 3.5 [basic.link]从N4567第8段说

... A type is said to have linkage if and only if: ... A型,据说有联动当且仅当:

  • it is a class or enumeration type that is named (or has a name for linkage purposes (7.1.3)) and the name has linkage; 它是被命名的类或枚举类型(或具有用于链接目的的名称(7.1.3)),并且该名称具有链接; or 要么
  • ... ...

which exclusively elaborates on linkage of types—one of the entities that a name can denote. 专门阐述类型的链接-名称可以表示的实体之一。 However, it seems that there is no information in this paragraph whether the linkage that a type shall have is internal or external . 但是, 在此段中似乎没有信息,类型应该具有的链接是内部的还是外部的 Is it because there is no need to define it at all, or because it is already defined by other paragraphs? 是因为根本不需要定义它,还是因为其他段落已经定义了它?

The type either has linkage, or it doesn't. 该类型要么具有链接,要么没有。 This paragraph is self-contained: the first half defines the notion of a type having linkage, and the second half describes restrictions on the use of types having no linkage. 本段是独立的:上半部分定义了具有链接的类型的概念,下半部分描述了对不具有链接的类型的使用的限制。 The notion of linkage of a type is not used anywhere else, as far as I can tell. 据我所知,在其他任何地方都没有使用类型链接的概念。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM