Item 24: Understand the costs of virtual functions, multiple inheritance, virtual base classes, and RTTI.
摘要:        
When a virtual function is called, the code executed must correspond to the dynamic type of the object on which the function is invoked; the type of the pointer or reference to the object is immaterial. How can compilers provide this behavior efficiently? Most implementations use virtual tables...    阅读全文
        posted @ 2012-03-12 15:07 Ray Z 阅读(211) 评论(0) 推荐(0)
                    
                
浙公网安备 33010602011771号