Re: how to build a recursive map ?

From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 04/20/04


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


Relevant Pages

  • Re: Homotopic maps
    ... > the takes Bd D^n to the southpole and maps int D^n ... f is an inessential map of ...
    (sci.math.research)
  • Re: how to build a recursive map ?
    ... > jose luis fernandez diaz wrote: ... > This is not a map of maps, it is a map of pointers to maps. ... > selects the map which maps int to double. ...
    (comp.lang.cpp)