CDictionary – library MetaTrader 5

CDictionary - library for MetaTrader 5
An implementation of the dictionary (associative array) data structure in MQL5, based on CArrayObj and CList. Hash Function FNV-1a Usage Primitives: CDictionary *dict=new CDictionary(); //setting dict.Set<string>(“costarring”,”liquid”); dict.Set<double>(“liquid”,0.1); //getting – variant 1 string variant1 = dict.Get<string>(“costarring”); Print(variant1); //getting – variant 2 double variant2 = 0; dict.Get<double>(“liquid”,variant2); Print(variant2); It can also store pointers to objects (but not … Read more