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

后端 未结 4 1241
走了就别回头了
走了就别回头了 2021-02-09 03:45

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

Thx!

4条回答
  •  清酒与你
    2021-02-09 04:10

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

提交回复
热议问题