| 1517 | |
| 1518 | template <class _Tp> |
| 1519 | _LIBCPP_HIDE_FROM_ABI void atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) { |
| 1520 | __sp_mut& __m = std::__get_sp_mut(__p); |
| 1521 | __m.lock(); |
| 1522 | __p->swap(__r); |
| 1523 | __m.unlock(); |
| 1524 | } |
| 1525 | |
| 1526 | template <class _Tp> |
| 1527 | inline _LIBCPP_HIDE_FROM_ABI void atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order) { |