![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度探索c++对象模型_阅读笔记
一息若存
这个作者很懒,什么都没留下…
展开
-
类模板
template class Point { public: Point(); Point(type coords[dim]){ for(int index = 0; index _coords[index] = coords[index]; } type& operator[] (int ind原创 2017-09-08 15:26:32 · 186 阅读 · 0 评论 -
inline
1.在c++中,每一个non-inline member function只会诞生一个函数实例。至于每一个“拥有零个或一个定义”的inline function则会在其每一个使用者(模块)身上产生一个实例。原创 2017-09-08 15:30:32 · 304 阅读 · 0 评论 -
virtual机制
1.virtual function机制 用以支持一个有效率的“执行期绑定”(runtime binding)。 2.virtual base class机制 用以实现“多次出现在继承体系中的base class,有一个单一而被共享的实例”。原创 2017-09-08 15:39:25 · 246 阅读 · 1 评论