template<class T>
Magnum::Trade::ArrayAllocator struct new in 2020.06

Growable array allocator to be used in importer plugins.

Compared to Containers::ArrayMallocAllocator ensures that the Containers::Array deleter function pointer is defined in the Trade library and not in the plugin binary itself, avoiding dangling function pointer call when the data array is destructed after the plugin has been unloaded. Other than that the behavior is identical.