c++: Does a vtable contains pointers to non-virtual functions?

后端 未结 4 1695
Happy的楠姐
Happy的楠姐 2021-02-09 03:28

vtable contains pointers to virtual functions of that class. Does it also contains pointers to non-virtual functions as well?

Thx!

4条回答
  •  旧时难觅i
    2021-02-09 04:14

    No. A vtable only contains pointers to virtual functions in the same class or file.

提交回复
热议问题