What is the best explanation for the export keyword in the C++0x standard?

后端 未结 7 1306
后悔当初
后悔当初 2021-02-05 04:50

I know that in the original C++0x standard there was a feature called export.

But I can\'t find a description or explanation of this feature. What is it sup

7条回答
  •  抹茶落季
    2021-02-05 05:23

    To put it simply:

    export lets you separate the declaration (ie. header) from the definition (ie. the code) when you write your template classes. If export is not supported by your compiler then you need to put the declaration and definition in one place.

提交回复
热议问题