- new operator
int *p =new int;
//1 分配内存
//2 调用构造函数
- operator new
//分配内存,不调用构造函数
string *str = operator new(sizeof(string));//相当于malloc
- placement new
//不分配新内存,在已有的内存上构建对象
new ((void*) __P) _T1(__value)
Demo *p_demo = (Demo*)malloc(sizeof(Demo));
new ((void*)p_demo) Demo();//new 默认接收void*类型
delete p_demo;
//construct 规范
construct(p_demo);//会调用构造