Dictionary with generic type (variant)

To add comments, please log in or register
zaro123
33
zaro123  

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 !

To add comments, please log in or register