存档

文章标签 ‘语义’

c++new的语义

2015年8月16日 1,261 人阅读 没有评论

在使用c++过程中我们经常使用new来创建一个对象,比如:Test * p = new Test,实际上c++中有三个new,它们分别为:new operator,operator new,placement new我们平时调用的new是c++语言内置的new operator,不能被重载。
阅读全文…

分类: c/c++ 标签: