c++ - "reserved for the implementation"的含义

标签 c++

正在阅读来自 What are the rules about using an underscore in a c identifier 的答案我偶然发现了以下引文:

From the 2003 C++ Standard:

17.4.3.2.1 Global names [lib.global.names]

Certain sets of names and function signatures are always reserved to the implementation:

  • Each name that contains a double underscore (_ _) or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use.
  • 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).

reserved for the implementation 到底是什么意思?

最佳答案

就是这个意思。这意味着,只有在提供编译器或标准库实现时才允许创建此类名称。

关于c++ - "reserved for the implementation"的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37325293/

相关文章:

c++ - 从 vector 的元素初始化结构

c++ - 并行计算的 Hello World 示例 :

c++ - 禁止切片以保持多个父类属性同步

c++ - 检查 time_t 是否在其他 time_t 之间并有一定误差

c++ - 关于如何解决此错误的任何想法?

c++ - 项目的 QTreeWidget

c++ - 套接字编程中如何发送长度大于缓冲区的消息?

C++比较 vector ,更快的方法

c++ - 如何使用 HiRedis 异步发布

c# - 从 C# 传递到非托管 dll 后参数不正确