Let´s say I have a single frame stack allocator, so I´m using it for allocating memories for my temporary data.
size_t freeTilesSize = 10; int* freeTiles = _allocator.allocate<int>(freeTilesSize);
The stack doesn´t save any conditional stuff about the memory it creates(it cares only about the size of the chunk so it knows the new header offset). I see this a good for using with POD data structures or classes with default destructor, however, is it usable also for bigger entities with some behavior at the destruction? At this moment, my function rewind only sets the header ptr to the start of the allocated block so it doesn´t call any destructors.
Am i doing something wrong? What was your approach?