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.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
         o.OOoOoo  OooOOo.        o                 
O O `O O o O OooOOo
o o O o O o o
ooOO O .o o o o O
.oOoO' O oOooOO' .oOoO OooOOo ooOOo.
O o o o o O O O
o O O O O o o o
`OoOo ooOooOoO o' `OoO'o O `OooO'
O
`o
Enter the code depicted in ASCII art style.