Search code examples
c++pointerspolymorphismvtableabi

Does C++ ABI specify how vTable and RTTI information should exist?


Popular implementation like GCC/VC uses the first size_t space of an polymorphic object as a pointer, pointing to a vtable structure. Is this part of latest C++ ABI?

How about RTTI implementation, does C++ ABI specify how to implement? Thanks


Solution

  • No, the C++ standard does not specify how any of this should be implemented. There is no single C++ ABI.