我正在阅读 MSDN article关于 __declspec。
开头为:
The extended attribute syntax for specifying storage-class information uses the __declspec keyword, which specifies that an instance of a given type is to be stored with a Microsoft-specific storage-class attribute listed below. ...
存储级别信息到底是什么意思?它如何影响编译器?
添加1
有人发布了一个链接作为评论,但很快就删除了。我发现该链接很有用。所以我在这里添加它。
最佳答案
本文似乎可以互换使用术语“扩展属性”和“存储类属性”。这些术语仅指您可以在 __declspec(...)
中指定的属性。 .
每个属性都有自己的含义,并且彼此之间大多无关。您可以点击文章中的链接来了解每个属性的用途。
关于c++ - __declspec() 中的 "storage-class information"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27308787/