阅读答案来自在c标识符中使用下划线的规则是什么 https://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier我偶然发现了以下引文:
来自 2003 年 C++ 标准:
17.4.3.2.1 全局名称 [lib.global.names]
某些名称和函数签名集始终保留给实现:
- 每个包含双下划线 (_ _) 或以下划线开头后跟大写字母 (2.11) 的名称都保留给实现以供任何使用。
- Each name that begins with an underscore is reserved to the implementation for use as a name in the global namespace.165
165) Such names are also reserved in namespace ::std (17.4.3.1).
到底是什么意思保留用于实施?
正是这个意思。这意味着,只有在提供编译器或标准库实现时才允许创建此类名称。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)