What does v
indicate in vtabl开发者_如何学Goe
or vptr
The 'v' stands for 'Virtual'.
The vtable is a common method by which virtual function calls are implemented. It contains pointers to a particular class instantiation's versions of any virtual functions that class implements. When you call a virtual function, the compiler will create code that loads it address from the vtable, and branches to that address.
精彩评论