Inside the c++ object model摘要
bobye1230
还是喜欢...
展开
-
Inside the c++ object model - Copy Constructor Construction
Default constructors and copy constructors…are generated (by the compiler) where needed. There are three program instances in which a class object is initialized with another object of its翻译 2008-10-31 09:28:00 · 381 阅读 · 0 评论 -
memset / memcpy 函数
当类对象能按照BITWISE COPY,使用memset或者memcpy函数~~~例如class Point3d { public: Point3d( float x, float y, float z ); // ... private: float _x, _y, _z; };翻译 2008-10-31 18:05:00 · 418 阅读 · 0 评论 -
Cost
Introduction of a virtual table associated with Point2d to hold the address of each virtual function it declares. The size of this table in general is the number of virtual functions declared plus a翻译 2008-11-03 18:48:00 · 583 阅读 · 0 评论