I've go the following code:
#include <string>
#include <map>
#include <vector>
typedef std::map<std::string, std::map<std::string, std::map<std::string, std::string> > > SCHEMA;
int main() {
SCHEMA tables;
// Schema table
tables["table_name"]["row_id"]["field_name"] = "value";
}
I want to modify the typedef to have a "row_id" as a numeric index and value of any type (kind of auto detecting). What should I do to achieve something like this?
tables["table1"][0]["field1"] = "value of any type";