您的位置:首页 > 编程语言 > C语言/C++

C++ vtable layout

2015-07-07 11:31 465 查看


A virtual table (vtable) is a table of information used to dispatch virtual functions, to access virtual base class subobjects, and to access information for runtime type identification (RTTI).

Virtual Table Components and Order :

1 Virtual call (vcall) offsets

2 Virtual Base (vbase) offsets

3 The offset to top holds the displacement to the top of the object

4 The typeinfo pointer

The virtual table address point points here

5 Virtual function pointers
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  C++ABI vtable