I am looking for a standard structure with two maps - is there one implemented in std / boost / another standard C ++ library?
When I say “double map”, I mean a map that can be effectively indexed with both a key and a “value” (in fact, it has two types of keys, not one type of key and one type of value).
eg:
dualmap<int,string> m;
m[1] = "foo";
m["bar"] = 2
int a = m["bar"];
Thanks Dan
Danra source
share