7025
7025
template<class T>
7026
7026
shared_ptr<T> atomic_exchange(shared_ptr<T>* p, shared_ptr<T> r);
7027
7027
template<class T>
7028
- shared_ptr<T> atomic_exchange_explicit(shared_ptr<T>* p, shared_ptr<T> r,
7029
- memory_order mo);
7028
+ shared_ptr<T> atomic_exchange_explicit(shared_ptr<T>* p, shared_ptr<T> r, memory_order mo);
7030
7029
7031
7030
template<class T>
7032
7031
bool atomic_compare_exchange_weak(
7049
7048
template <class T> struct hash<shared_ptr<T>>;
7050
7049
7051
7050
// \ref{allocator.uses.trait}, uses_allocator
7052
- template <class T, class Alloc> constexpr bool uses_allocator_v
7053
- = uses_allocator<T, Alloc>::value;
7051
+ template <class T, class Alloc>
7052
+ constexpr bool uses_allocator_v = uses_allocator<T, Alloc>::value;
7054
7053
}
7055
7054
\end{codeblock}
7056
7055
10706
10705
\indexlibrarymember{atomic_exchange_explicit}{shared_ptr}%
10707
10706
\begin{itemdecl}
10708
10707
template<class T>
10709
- shared_ptr<T> atomic_exchange_explicit(shared_ptr<T>* p, shared_ptr<T> r,
10710
- memory_order mo);
10708
+ shared_ptr<T> atomic_exchange_explicit(shared_ptr<T>* p, shared_ptr<T> r, memory_order mo);
10711
10709
\end{itemdecl}
10712
10710
10713
10711
\begin{itemdescr}
@@ -10727,17 +10725,18 @@
10727
10725
\indexlibrarymember{atomic_compare_exchange_weak}{shared_ptr}%
10728
10726
\begin{itemdecl}
10729
10727
template<class T>
10730
- bool atomic_compare_exchange_weak(
10731
- shared_ptr<T>* p, shared_ptr<T>* v, shared_ptr<T> w);
10728
+ bool atomic_compare_exchange_weak(shared_ptr<T>* p, shared_ptr<T>* v, shared_ptr<T> w);
10732
10729
\end{itemdecl}
10733
10730
10734
10731
\begin{itemdescr}
10735
10732
\pnum
10736
10733
\requires \tcode{p} shall not be null and \tcode{v} shall not be null.
10737
10734
10738
10735
\pnum
10739
- \returns \tcode{atomic_compare_exchange_weak_explicit(p, v, w,
10740
- memory_order_seq_cst, memory_order_seq_cst)}.
10736
+ \returns
10737
+ \begin{codeblock}
10738
+ atomic_compare_exchange_weak_explicit(p, v, w, memory_order_seq_cst, memory_order_seq_cst)
10739
+ \end{codeblock}
10741
10740
10742
10741
\pnum
10743
10742
\throws Nothing.
@@ -10746,14 +10745,15 @@
10746
10745
\indexlibrarymember{atomic_compare_exchange_strong}{shared_ptr}%
10747
10746
\begin{itemdecl}
10748
10747
template<class T>
10749
- bool atomic_compare_exchange_strong(
10750
- shared_ptr<T>* p, shared_ptr<T>* v, shared_ptr<T> w);
10748
+ bool atomic_compare_exchange_strong(shared_ptr<T>* p, shared_ptr<T>* v, shared_ptr<T> w);
10751
10749
\end{itemdecl}
10752
10750
10753
10751
\begin{itemdescr}
10754
10752
\pnum
10755
- \returns \tcode{atomic_compare_exchange_strong_explicit(p, v, w,}
10756
- \tcode{memory_order_seq_cst, memory_order_seq_cst)}.
10753
+ \returns
10754
+ \begin{codeblock}
10755
+ atomic_compare_exchange_strong_explicit(p, v, w, memory_order_seq_cst, memory_order_seq_cst)
10756
+ \end{codeblock}
10757
10757
\end{itemdescr}
10758
10758
10759
10759
\indexlibrarymember{atomic_compare_exchange_weak_explicit}{shared_ptr}%
0 commit comments