Re: how to build a recursive map ?
From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 04/20/04
- Next message: Andrew: "Formatting decimal places"
- Previous message: DEX: "Naming convention from my point of view"
- In reply to: jose luis fernandez diaz: "how to build a recursive map ?"
- Next in thread: jose luis fernandez diaz: "Re: how to build a recursive map ?"
- Reply: jose luis fernandez diaz: "Re: how to build a recursive map ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Apr 2004 16:58:51 +0200
jose luis fernandez diaz wrote:
>
> I want to define a map where each element is a map. Something similar to:
>
> map<string, map *> m1;
This is not a map of maps, it is a map of pointers to maps.
Anyway: what is your problem?
lets say you have a map, which maps int to double
map< int, double >
you now want to build a map out of this, such that a string
selects the map which maps int to double.
map< string, map< int, double > >
-- Karl Heinz Buchegger kbuchegg@gascad.at
- Next message: Andrew: "Formatting decimal places"
- Previous message: DEX: "Naming convention from my point of view"
- In reply to: jose luis fernandez diaz: "how to build a recursive map ?"
- Next in thread: jose luis fernandez diaz: "Re: how to build a recursive map ?"
- Reply: jose luis fernandez diaz: "Re: how to build a recursive map ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|