Re: Multiple index maps
On Jul 1, 2:36 am, rep_movsd <rep.mo...@gmail.com> wrote:
> Can you explain what the maps represent?
>
> That would allow us to make sensible suggestions...
>
> Vivek
Well, each index/key represents some property. For instance,
map<int, map<string, vector<int> > > m1;
The first int key can be something like an enum of a color type (dark,
light, etc.,) and the second string key may be the color name. So if I
wanted "dark green integers" I would need m1[DARK]["green"].
In general the indexes are independent of each other.
|