When the lifetime of container is the same with the lifetime of its elements, using an arena allocator for both the container and its elements is a much better solution.
In other words, freeing memory in deinit using for is a red flag that an arena allocator is a better fit.