Atomic Operations on std::shared_ptr
We'll cover the following
There are specializations for the atomic operations load, store, compare, and exchange for an std::shared_ptr
. By using the explicit variant, you can even specify the memory model. Here are the free atomic operations for std::shared_ptr
:
Get hands-on with 1400+ tech skills courses.