虚拟指针大小C ++ [英] Size of virtual pointer-C++

查看:88
本文介绍了虚拟指针大小C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C ++中虚拟表的虚拟指针(VPTR)的大小是多少?此外,这不是一个家庭作业问题...只是一个问题,在我正在读一个C ++书。我想。。

What is the size of virtual pointer(VPTR) for a virtual table in C++? Also this is not a homework question...just a question that came to my mind while I was reading a C++ book.

推荐答案

与此主题相关的一篇精彩文章是成员函数指针和最快的C ++代理。本文深入探讨了许多不同编译器的成员函数指针的实现。本文介绍了vtable指针的所有细微差别,特别是考虑到多个(和虚拟)继承。

An excellent article related to this topic is Member Function Pointers and the Fastest Possible C++ Delegates. This article delves deeply into the implementation of member function pointers for many different compilers. This article talks about all the nuances of vtable pointers particularly in light of multiple (and virtual) inheritance.

这篇关于虚拟指针大小C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆