Discussion: Multiple index maps
Afficher un message
Vieux 01/07/2008, 10h22   #4
fgh.vbn.rty@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
  Réponse avec citation
 
Page generated in 0,04927 seconds with 9 queries