need help i created a map of unique_ptr std::map<std::unique_ptr<class
need help
i created a map of unique_ptr
std::map, std::unique_ptr>
now while iterating
for( auto& [key, val] : mymap)
key is const std::unique_ptr
and val is std::unique_ptr
i don't know its the right way of doing this, i need key as non const ptr
GopalPosted Mar 10, 2021, 6:51 AM
Rajanikant HawaldarPosted Mar 10, 2021, 6:47 AM
GopalPosted Mar 10, 2021, 6:45 AM
Rajanikant HawaldarPosted Mar 10, 2021, 6:43 AM
GopalPosted Mar 10, 2021, 6:41 AM
Rajanikant HawaldarPosted Mar 10, 2021, 6:23 AM
GopalPosted Mar 9, 2021, 3:14 PM
Rajanikant HawaldarPosted Mar 9, 2021, 12:40 PM