Export (0) Print
Expand All
Expand Minimize

ATL_NO_VTABLE

A symbol that prevents the vtable pointer from being initialized in the class's constructor and destructor.

ATL_NO_VTABLE

Remarks

If the vtable pointer is prevented from being initialized in the class's constructor and destructor, the linker can eliminate the vtable and all of the functions to which it points. Expands to __declspec(novtable).

Example

class ATL_NO_VTABLE MyClass   // MyClass will not have a vtable
{
   // ...
};

See Also

Compiler Options Macros | ATL Macros | Specifying Compiler Optimization for an ATL Project

Show:
© 2014 Microsoft