When do unique_ptr get destruct when it's stored inside a global map?

前端 未结 0 1742
时光取名叫无心
时光取名叫无心 2021-01-04 14:22

I\'m having hard time to understand life time semantics of smart pointers when they are stored inside a global unordered_map.

Consider this global code block,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题