Skip to content

Commit 20285d0

Browse files
committed
[util.smartptr.shared.atomic] Use codeblocks for long return elements.
Addresses #693 for this part.
1 parent 3c6d910 commit 20285d0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

source/utilities.tex

+14-14
Original file line numberDiff line numberDiff line change
@@ -7025,8 +7025,7 @@
70257025
template<class T>
70267026
shared_ptr<T> atomic_exchange(shared_ptr<T>* p, shared_ptr<T> r);
70277027
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);
70307029

70317030
template<class T>
70327031
bool atomic_compare_exchange_weak(
@@ -7049,8 +7048,8 @@
70497048
template <class T> struct hash<shared_ptr<T>>;
70507049

70517050
// \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;
70547053
}
70557054
\end{codeblock}
70567055

@@ -10706,8 +10705,7 @@
1070610705
\indexlibrarymember{atomic_exchange_explicit}{shared_ptr}%
1070710706
\begin{itemdecl}
1070810707
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);
1071110709
\end{itemdecl}
1071210710

1071310711
\begin{itemdescr}
@@ -10727,17 +10725,18 @@
1072710725
\indexlibrarymember{atomic_compare_exchange_weak}{shared_ptr}%
1072810726
\begin{itemdecl}
1072910727
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);
1073210729
\end{itemdecl}
1073310730

1073410731
\begin{itemdescr}
1073510732
\pnum
1073610733
\requires \tcode{p} shall not be null and \tcode{v} shall not be null.
1073710734

1073810735
\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}
1074110740

1074210741
\pnum
1074310742
\throws Nothing.
@@ -10746,14 +10745,15 @@
1074610745
\indexlibrarymember{atomic_compare_exchange_strong}{shared_ptr}%
1074710746
\begin{itemdecl}
1074810747
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);
1075110749
\end{itemdecl}
1075210750

1075310751
\begin{itemdescr}
1075410752
\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}
1075710757
\end{itemdescr}
1075810758

1075910759
\indexlibrarymember{atomic_compare_exchange_weak_explicit}{shared_ptr}%

0 commit comments

Comments
 (0)