<分区>
Possible Duplicate:
C++'s “placement new”
下面代码中第3行代表什么,是类型转换的方式吗?或者什么
void someCode()
{
char memory[sizeof(Fred)]; // Line #1
void* place = memory; // Line #2
Fred* f = new(place) Fred(); // Line #3
// The pointers f and place will be equal
...
}