Skip to content

Commit 0c3c940

Browse files
[out.ptr.t] Exposition-only style for s, a, and p
1 parent cf35505 commit 0c3c940

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

source/memory.tex

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5472,9 +5472,9 @@
54725472
operator void**() const noexcept;
54735473

54745474
private:
5475-
Smart& s; // \expos
5476-
tuple<Args...> a; // \expos
5477-
Pointer p; // \expos
5475+
Smart& @\exposid{s}@; // \expos
5476+
tuple<Args...> @\exposid{a}@; // \expos
5477+
Pointer @\exposid{p}@; // \expos
54785478
};
54795479
}
54805480
\end{codeblock}
@@ -5508,23 +5508,23 @@
55085508
\begin{itemdescr}
55095509
\pnum
55105510
\effects
5511-
Initializes \tcode{s} with \tcode{smart},
5512-
\tcode{a} with \tcode{std::forward<Args>(args)...}, and
5513-
value-initializes \tcode{p}.
5511+
Initializes \exposid{s} with \tcode{smart},
5512+
\exposid{a} with \tcode{std::forward<Args>(args)...}, and
5513+
value-initializes \exposid{p}.
55145514
Then, equivalent to:
55155515
\begin{itemize}
55165516
\item
55175517
% pretend to \item that there is real text here, but undo the vertical spacing
55185518
\mbox{}\vspace{-\baselineskip}\vspace{-\parskip}
55195519
\begin{codeblock}
5520-
s.reset();
5520+
@\exposid{s}@.reset();
55215521
\end{codeblock}
5522-
if the expression \tcode{s.reset()} is well-formed;
5522+
if the expression \tcode{\exposid{s}.reset()} is well-formed;
55235523

55245524
\item
55255525
otherwise,
55265526
\begin{codeblock}
5527-
s = Smart();
5527+
@\exposid{s}@ = Smart();
55285528
\end{codeblock}
55295529
if \tcode{is_constructible_v<Smart>} is \tcode{true};
55305530

@@ -5562,20 +5562,20 @@
55625562
% pretend to \item that there is real text here, but undo the vertical spacing
55635563
\mbox{}\vspace{-\baselineskip}\vspace{-\parskip}
55645564
\begin{codeblock}
5565-
if (p) {
5565+
if (@\exposid{p}@) {
55665566
apply([&](auto&&... args) {
5567-
s.reset(static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
5567+
@\exposid{s}@.reset(static_cast<SP>(@\exposid{p}@), std::forward<Args>(args)...); }, std::move(@\exposid{a}@));
55685568
}
55695569
\end{codeblock}
55705570
if the expression
5571-
\tcode{s.reset(static_cast<SP>(p), std::forward<Args>(args)...)}
5571+
\tcode{\exposid{s}.reset(static_cast<SP>(\exposid{p}), std::forward<Args>(args)...)}
55725572
is well-\linebreak formed;
55735573
\item
55745574
otherwise,
55755575
\begin{codeblock}
5576-
if (p) {
5576+
if (@\exposid{p}@) {
55775577
apply([&](auto&&... args) {
5578-
s = Smart(static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
5578+
@\exposid{s}@ = Smart(static_cast<SP>(@\exposid{p}@), std::forward<Args>(args)...); }, std::move(@\exposid{a}@));
55795579
}
55805580
\end{codeblock}
55815581
if \tcode{is_constructible_v<Smart, SP, Args...>} is \tcode{true};
@@ -5595,7 +5595,7 @@
55955595

55965596
\pnum
55975597
\returns
5598-
\tcode{addressof(const_cast<Pointer\&>(p))}.
5598+
\tcode{addressof(const_cast<Pointer\&>(\exposid{p}))}.
55995599
\end{itemdescr}
56005600

56015601
\begin{itemdecl}
@@ -5620,12 +5620,12 @@
56205620
A pointer value \tcode{v} such that:
56215621
\begin{itemize}
56225622
\item
5623-
the initial value \tcode{*v} is equivalent to \tcode{static_cast<void*>(p)} and
5623+
the initial value \tcode{*v} is equivalent to \tcode{static_cast<void*>(\exposid{p})} and
56245624
\item
56255625
any modification of \tcode{*v}
56265626
that is not followed by a subsequent modification of \tcode{*this}
5627-
affects the value of \tcode{p} during the destruction of \tcode{*this},
5628-
such that \tcode{static_cast<void*>(p) == *v}.
5627+
affects the value of \exposid{p} during the destruction of \tcode{*this},
5628+
such that \tcode{static_cast<void*>(\exposid{p}) == *v}.
56295629
\end{itemize}
56305630

56315631
\pnum

0 commit comments

Comments
 (0)