用于需要频繁删除和创建对象的地方,减少了分配和释放内存的性能消耗。 struct A { }; unsigned char buf[3*sizeof(A)]; A* pa=(unsigned char*)buf; pa=new(buf) A;