In [1]:
from ROOTaaS.iPyROOT import ROOT
In [2]:
%%cpp
unordered_map<string,int> theMap;
Out[2]:
In [3]:
ROOT.theMap
Out[3]:
In [5]:
ROOT.theMap["key1"]=123
ROOT.theMap["key2"]=321
In [6]:
%%cpp
for (auto&& el : theMap) std::cout << el.first << " " << el.second << std::endl;
Out[6]:
In [ ]: