I have a map I am using to quickly access some elements on my program. I want to remove some of these elements from my map (I have references to them elsewhere). Is there some way to remove these items without having their destructors called by the map‘s clear() or erase() functions?
I have a map I am using to quickly access some elements on my
Share
If you’re mapping pointers to the objects, the objects themselves won’t be destroyed. If the objects themselves are in the map, they will be destroyed.