[求助]布局new操作符的问题
class Test
{
..........
}
int main()
{
char* buffer=new char[512];
Test *pc1;
pc1=new (buffer)Test;//what does it mean?
..................
class Test
{
..........
}
int main()
{
char* buffer=new char[512];
Test *pc1;
pc1=new (buffer)Test;//what does it mean?
..................