
Detecting the Actual Size of a Memory Block Allocated by new
The following trick isn’t portable. Furthermore, even implementations that currently support it do not guarantee to support it in their future releases. Still, it can teach you a few things