The count of shared_ptr changes for each run

前端 未结 0 1142
时光说笑
时光说笑 2021-02-07 10:27

In the https://en.cppreference.com/w/cpp/memory/shared_ptr example:

Although the constructor and destructor is called only once, why means the shared_ptr is thread safe.

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