vptr

R

Rahul

Hi Everyone,

I was wondering what is the datatype of vtpr and what is its access
specifier (public or private or protected)?
This is in regard to the inheritance of a class having one or more
virtual functions.

Thanks in advance!!!
 
B

Bo Persson

Rahul wrote:
:: Hi Everyone,
::
:: I was wondering what is the datatype of vtpr and what is its
:: access specifier (public or private or protected)?
:: This is in regard to the inheritance of a class having one or more
:: virtual functions.
::

It is all implementation specific, so we don't know.

There is not even a requirement to have a vptr, if the compiler can
perform the required actions without one.


Bo Persson
 
S

srikrishanmalik

Rahul wrote:

:: Hi Everyone,
::
:: I was wondering what is the datatype of vtpr and what is its
:: access specifier (public or private or protected)?
:: This is in regard to the inheritance of a class having one or more
:: virtual functions.
::

It is all implementation specific, so we don't know.

There is not even a requirement to have a vptr, if the compiler can
perform the required actions without one.

Bo Persson


I think as a user there is no need to know the type,
 
G

Guest

Please do not quote signatures, and please reply to the post to which
your reply is directed.
I think as a user there is no need to know the type,

I think that as a user there is no way to tell if there is a vptr to
begin with.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top