Virtual Table layout in memory?

后端 未结 6 1551
陌清茗
陌清茗 2021-02-08 13:11

how are virtual tables stored in memory? their layout?

e.g.

class A{
    public:
         virtual void doSomeWork();
};

class B : public A{
    public:         


        
6条回答
  •  猫巷女王i
    2021-02-08 13:37

    vtable layout in memory is completely compiler dependent; there's no "correct" or universal approach taken.

提交回复
热议问题