Re: "dumping" a map

new topic     » goto parent     » topic index » view thread      » older message » newer message

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) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu