Re: "dumping" a map
- Posted by cjnwl Mar 02, 2023
- 794 views
So, I've been using my map_dump function for over a week now and it works fine.
I did have to add a to_string call in the two wrapper functions, so that I get e readable string when the submap key is an integer :
temp[i] = m_ & to_string(temp[i])
Note too that when I use want to insert an already-created map as a submap I have to explicitly include the m_ prefix before the final key in the call to my_nested_put:
my_nested_put(main_map, {key_1, m_ & key_2}, sub_map)