随笔 - 14, 文章 - 0, 评论 - 3, 引用 - 0
数据加载中……

C++

[转贴]客户端架构设计的简单总结

posted @ 2014-08-20 19:19 天道酬勤 阅读(249) | 评论 (0)  编辑

[转]C++ placement new
     摘要: C++ placement new  阅读全文

posted @ 2013-12-17 21:09 天道酬勤 阅读(235) | 评论 (0)  编辑

C++中placement new操作符
     摘要: placement new是重载operator new的一个标准、全局的版本,它不能被自定义的版本代替(不像普通的operator new和operator delete能够被替换成用户自定义的版本)。
它的原型如下:
void *operator new( size_t, void *p ) throw() { return p; }  阅读全文

posted @ 2013-12-17 21:03 天道酬勤 阅读(276) | 评论 (0)  编辑