Do all classes have a Vtable created for them by the compiler?

后端 未结 3 1716
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 23:15

There are many resources online about VTables. They commonly have the same statement regarding them:

\"Whenever a class itself contains virtual functions or ove

3条回答
  •  伪装坚强ぢ
    2021-01-13 00:03

    In addition, some classes don't have a vtable because is explicitly removed, see __declspec(novtable) (compiler specific)

提交回复
热议问题