I have python code that contains the following code.
d = {}
d[(0,0)] = 0
d[(1,2)] = 1
d[(2,1)] = 2
d[(2,3)] = 3
d[(3,2)] = 4
for (i,j) in d:
print d[(
Do you want to call an optimized C++ routine via Python? If so, read on:
Often times I use PyYaml when dealing with dictionaries in Python. Perhaps you could link in something like LibYAML or yamlcpp to:
std::map
objectWarning: I have never tried this, but using everyone's favorite search engine on "yaml std::map" yields lots of interesting links