摘要: operator new的一些原则:
a. 一般不要重写全局的operator new, 具体可以参考 不要重载全局 ::operator new
b. 如果重载了operator new, 同时提供所有版本(plain new, nothrow new, placement new)
c. 成对的提供new和delete, 即如果重载了operator new, 同时重载operator delete  阅读全文
posted @ 2012-10-06 22:25 Richard Wei 阅读(2729) | 评论 (0)编辑 收藏
     摘要: C++编程规范...  阅读全文
posted @ 2012-10-06 20:05 Richard Wei 阅读(853) | 评论 (0)编辑 收藏