gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:56:35 25 4
gpt4 key购买 nike

正在阅读来自 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com