Kurzsyntax für c ++ map in map

Wenn ich Definitionen habe wie:

typedef map<string, Foo> Foo_map_1
typedef map<string, Foo_map_1> Foo_map_2
typedef map<string, Foo_map_2> Foo_map_3
typedef map<string, Foo_map_3> Foo_map_4
typedef map<string, Foo_map_4> Foo_map_5

Gibt es sowieso ich kann das verallgemeinern, so könnte ich zum Beispiel tun,

Foo_map<10>

und haben eine 10-fach verschachtelte Karte. Ich brauche sowas nichtboost::recursive_wrapper weil die Anzahl der Ebenen immer konstant ist.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage