c++ why std::shared_ptr need atomic_store, atomic_load or why we need atomic shared_ptr
shared_ptr is some sort of confusing especially why we need atomic_store, atomic_load on that. It is NOT thread safe. In fact, the primary intended use of std::shared_ptr is letting multiple threads…