Placement new and destructor

Viewed 903

I have simple struct that has fixed size and contains build-in types. I create memory pool by allocating chunk of memory and I split this memory to blocks of size of my struct. Then it uses placement new to call constructor on particular memory block to initialize some members with default values. Then I would like to release whole memory chunk by calling delete[] operator. Can I safely skip explicit destructor call for each object initialized with placement new? I don't locate any resources inside constructor or inside constructors of other member fields of that class. I want just release whole memory chunk.

1 Answers
Related