I would like to define a card that it takes a string as a key, but the value will display again with the string as the key, but the value will display a similar nature, ..., ultimately the last card in the chain will be a display from row to strings.
I am trying to implement a JSON tag data structure for a value.
To illustrate, here are the code segments that I could find:
typedef map<string, string> str2str;
typedef map<string, str2str> str2str2str;
...
typedef map<string, str2map_or_str> str2map_or_str;
What is the idiomatic approach in C ++?
source
share