4.2.6. __declspec(notshared)

__declspec(notshared) 属性指明不导出动态符号的特定类。

示例


struct __declspec(notshared) X

{

    virtual int f();

};                             // do not export this



int X::f()

{

    return 1;

}



struct Y : X

{

    virtual int g();

};                             // do export this



int Y::g()

{

    return 1;

}

Copyright © 2007 ARM Limited. All rights reserved. ARM DUI 0348AC
Non-Confidential