Skip to main content

Placement new operator

Posted in

void *buf = reinterpret_cast<void*>(0xf01f);
X *x = new (buf) X;

Post new comment

The content of this field is kept private and will not be shown publicly.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
                o             o       o      O 
O O O o
O o o o O
oOo O o oO
o .oOo o `oOOoOO. O Oo
O `Ooo. O O o o O o o
o O o o O O o . O O
`oO `OoO' Oo O o o OOoOooO O o

Enter the code depicted in ASCII art style.