I need a std::map container have something like:
[ "a" => [ "a1" => [ "a11" => 1, "a12" => 0 ], "a2" => 1 ] ]
-
The key
"a1"have a value of anotherstd::map, but the key"a2"have a value of integer. In this situation, how can I declare the map? -
Is there a way to change the value to another type? For example, if I want to change the value of
"a12"to astd::vector?
Thanks.
Aucun commentaire:
Enregistrer un commentaire