ATL_NO_VTABLE

 

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

Syntax

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 CMyClass2 :

Requirements

Header: atldef.h

See Also

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