Dictionary with generic type (variant)

 

I'm working with this library (https://github.com/dingmaotu/mql4-lib/blob/master/Collection/HashMap.mqh)

And I need to create a dictionary with different types (the value could be a string, double or integer)

I found out that there is a variant type for C++ (https://stackoverflow.com/questions/47404870/stdmap-with-different-data-types-for-values)

but could it be used in MQL? Any solution would help a lot.

Thanks !