A generic object allocator is used to create C++ class/struct instances.