Foo* set = new Foo[100];
// ...
delete [] set;
You don’t pass the array’s boundaries to delete[]
. But where is that information stored? Is it standardised?
Foo* set = new Foo[100];
// ...
delete [] set;
You don’t pass the array’s boundaries to delete[]
. But where is that information stored? Is it standardised?