'/usr/include/c++/4.4/bits/' 中的位的含义是什么?
'/usr/include/c++/4.4/bits/' Linux 中的位的含义是什么
,当然是 gcc。
What's the meaning of bits in '/usr/include/c++/4.4/bits/'
Linux, gcc of course.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 libstdc++ 文档,该文件夹的官方名称是:
“bits”可能只是意味着一些微不足道的东西,例如“构成通过标准标头包含的内容的实现的位”。
例如,如果包含标准标头,则实际上包含 bits/c ++config.h、bits/stl_relops.h、bits/stl_pair.h、bits/stl_algobase.h 和bits/stl_algo.h 在幕后,每个都定义了奇数位,这些奇数位共同为您提供了包括在内的人所需要的内容。 Boost将
概念上相同的文件夹称为“详细信息”。
The official designation of that folder according to the libstdc++ documentation is:
Where "bits" probably just means something trivial as "the bits that make up the implementation of what you include via the standard headers".
For example, if you include the standard <algorithm> header, you really include bits/c++config.h, bits/stl_relops.h, bits/stl_pair.h bits/stl_algobase.h and bits/stl_algo.h under the hood, each of which defines the odd bits that alltogether give you what someone including <algorithm> would expect to get.
Boost calls the conceptually same folder "detail".
这意味着该文件是 gcc 标准库实现的内部文件,您不应直接包含它。 “比特”这个名字从何而来,我不知道。
It means that the file is internal to gcc's implementation of the standard library, and you shouldn't include it directly. Where the name "bits" came from, I don't know.