- Only applied to pure interface class
- Compiler stop initializing the vfptr in constructor and destructor.
- Only references to the vtable that are associated with the class will be remove.
- Can reduce code size.
I found an article which describe how this keyword can help in code optimization, how the code will improve when disabling vtable initialzation, and how to indicate a function not to throw an exception.
No comments:
Post a Comment