novtable (Windows CE 5.0)
The __declspec (novtable) extended storage-class modifier stops the compiler from generating code to initialize the vfptr in the constructor(s) and destructor of the class. In many cases, this removes the only references to the vtable that are associated with the class and, thus, the linker removes it.
This form of __declspec can be applied to any class declaration, but should only be applied to pure interface classes. Pure interface classes are never instantiated on their own.
Using this form of __declspec can result in a significant reduction in code size.
See Also
Send Feedback on this topic to the authors