more efficitive c++(prefix postfix and operator new)
知识点:1,prefix:incrementandfetch postfix:fetchandincrement2,前值和后置的标准写法,见代码(返回值!!!)3,new分为两步 一,调用operatornew分配空间二,调用pleasementnew构造对象。operatornew要用operatordelete释放#include
#include
usingnamespacestd;
cl