In the documentation for UTexture2D::UpdateTextureRegions() the argument list holds a DataCleanupFunc but the list of parameters still describes the older signature using a bool bFreeData.
It is not clear how to declare and use the TFunction template DataCleanupFunc. As a functor I would expect to be able to associate it with a user data pointer as well, like a memory manager or something.