Hi,
I need to be able to create nested data structures in C++, e.g. maps of maps (maps with values being maps). I'm not sure how to do this...
I've tried:
and other such combinations, to no avail. I know this has to do with the fact that map is a template, but I'm not sure how to work around it.
Thank you very much,
dora c
I need to be able to create nested data structures in C++, e.g. maps of maps (maps with values being maps). I'm not sure how to do this...
I've tried:
Code:
#include <map>
map<string, map* > m;
Thank you very much,
dora c