I have a class which has a field of type unordered_map. I create a single instance of this object in my application, which is wrapped in a shared_ptr
unordered_map
shared_ptr
There's no guarantee that your application will free the memory back to the OS. It's still available for your application to use but the OS may not reclaim it for general use until your application exits.