Hello.
I tried a sample programm using placement new. I am not sure if i
understand this technique correctly. I do not mean usage but a real
world application. Could anyone to describe some applications where it
gives reason to use placement new? My doubts come from my consideration
that if I delete an object (e.g. 50MB) then system can allocate this
chunk of memory to another process and my process will not be able to
re-use this segment. This technique is good for preventing memory from
fragmentation. Because if I'm using the same segment of memory it
should be more sensible to keep this memory and use the same object and
just update it's members according to "streams" from outside. Can
anyone explain me the steps from new() to delete() to another
allocation with placement new()? Thank you.
Elviin Nela