8
Answers

need help i created a map of unique_ptr std::map<std::unique_ptr<class

Gopal

Gopal

3y
1.4k
1
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
Answers (8)