How to create a map of smart pointers that deletes its elements when the pointers go out of scope

后端 未结 0 850
暖寄归人
暖寄归人 2021-02-01 19:08

I want to a map container that takes a smart pointer to a custom type. When you put the key in, you get shared_ptrs to the object, but when all of those share

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