S
SpreadTooThin
I have a dictionary that looks like:
a0,b0,c0,d0,e0
a1,b1,c1,d1,e1
....
....
Currently I consider [a,b] (Class Tag) to be the key and [c,d,e]
(Class Value) to be the value.
However I now need to use [e] as the key and [a,b,c,d] as the value.
the dictionary class uses defines:
std::map<Tag, Value> dictionary;
as the dictionary... (Where Tag and Values are classes)
What must I do to be able to have more than one key?
Must I define two new classes for TagB and ValuesB and another
dictionary based on these classes?
Multimaps seems to pop into mind.. but I don't know how to use the and
am not sure if they are part of the stl...
a0,b0,c0,d0,e0
a1,b1,c1,d1,e1
....
....
Currently I consider [a,b] (Class Tag) to be the key and [c,d,e]
(Class Value) to be the value.
However I now need to use [e] as the key and [a,b,c,d] as the value.
the dictionary class uses defines:
std::map<Tag, Value> dictionary;
as the dictionary... (Where Tag and Values are classes)
What must I do to be able to have more than one key?
Must I define two new classes for TagB and ValuesB and another
dictionary based on these classes?
Multimaps seems to pop into mind.. but I don't know how to use the and
am not sure if they are part of the stl...