Skip to content

Commit dc6bbf3

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

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

source/memory.tex

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5712,9 +5712,9 @@
57125712
operator void**() const noexcept;
57135713

57145714
private:
5715-
Smart& s; // \expos
5716-
tuple<Args...> a; // \expos
5717-
Pointer p; // \expos
5715+
Smart& @\exposid{s}@; // \expos
5716+
tuple<Args...> @\exposid{a}@; // \expos
5717+
Pointer @\exposid{p}@; // \expos
57185718
};
57195719
}
57205720
\end{codeblock}
@@ -5745,17 +5745,17 @@
57455745
\begin{itemdescr}
57465746
\pnum
57475747
\effects
5748-
Initializes \tcode{s} with \tcode{smart},
5749-
\tcode{a} with \tcode{std::forward<Args>(args)...}, and
5750-
\tcode{p} to either
5748+
Initializes \exposid{s} with \tcode{smart},
5749+
\exposid{a} with \tcode{std::forward<Args>(args)...}, and
5750+
\exposid{p} to either
57515751
\begin{itemize}
57525752
\item \tcode{smart} if \tcode{is_pointer_v<Smart>} is \tcode{true},
57535753
\item otherwise, \tcode{smart.get()}.
57545754
\end{itemize}
57555755

57565756
\pnum
57575757
\remarks
5758-
An implementation can call \tcode{s.release()}.
5758+
An implementation can call \tcode{\exposid{s}.release()}.
57595759

57605760
\pnum
57615761
\begin{note}
@@ -5777,8 +5777,8 @@
57775777
\tcode{\exposid{POINTER_OF_OR}(Smart, Pointer)}\iref{memory.general}.
57785778

57795779
\pnum
5780-
Let \exposid{release-statement} be \tcode{s.release();}
5781-
if an implementation does not call \tcode{s.release()} in the constructor.
5780+
Let \exposid{release-statement} be \tcode{\exposid{s}.release();}
5781+
if an implementation does not call \tcode{\exposid{s}.release()} in the constructor.
57825782
Otherwise, it is empty.
57835783

57845784
\pnum
@@ -5790,28 +5790,28 @@
57905790
\mbox{}\vspace{-\baselineskip}\vspace{-\parskip}
57915791
\begin{codeblock}
57925792
apply([&](auto&&... args) {
5793-
s = Smart(static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
5793+
@\exposid{s}@ = Smart(static_cast<SP>(@\exposid{p}@), std::forward<Args>(args)...); }, std::move(@\exposid{a}@));
57945794
\end{codeblock}
57955795
if \tcode{is_pointer_v<Smart>} is \tcode{true};
57965796
\item
57975797
otherwise,
57985798
\begin{codeblock}
57995799
@\exposid{release-statement}@;
5800-
if (p) {
5800+
if (@\exposid{p}@) {
58015801
apply([&](auto&&... args) {
5802-
s.reset(static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
5802+
@\exposid{s}@.reset(static_cast<SP>(@\exposid{p}@), std::forward<Args>(args)...); }, std::move(@\exposid{a}@));
58035803
}
58045804
\end{codeblock}
58055805
if the expression
5806-
\tcode{s.reset(static_cast<SP>(p), std::forward<Args>(args)...)}
5806+
\tcode{\exposid{s}.reset(static_cast<SP>(\exposid{p}), std::forward<Args>(args)...)}
58075807
is well-\newline formed;
58085808
\item
58095809
otherwise,
58105810
\begin{codeblock}
58115811
@\exposid{release-statement}@;
5812-
if (p) {
5812+
if (@\exposid{p}@) {
58135813
apply([&](auto&&... args) {
5814-
s = Smart(static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
5814+
@\exposid{s}@ = Smart(static_cast<SP>(@\exposid{p}@), std::forward<Args>(args)...); }, std::move(@\exposid{a}@));
58155815
}
58165816
\end{codeblock}
58175817
if \tcode{is_constructible_v<Smart, SP, Args...>} is \tcode{true};
@@ -5831,7 +5831,7 @@
58315831

58325832
\pnum
58335833
\returns
5834-
\tcode{addressof(const_cast<Pointer\&>(p))}.
5834+
\tcode{addressof(const_cast<Pointer\&>(\exposid{p}))}.
58355835
\end{itemdescr}
58365836

58375837
\begin{itemdecl}
@@ -5856,12 +5856,12 @@
58565856
A pointer value \tcode{v} such that:
58575857
\begin{itemize}
58585858
\item
5859-
the initial value \tcode{*v} is equivalent to \tcode{static_cast<void*>(p)} and
5859+
the initial value \tcode{*v} is equivalent to \tcode{static_cast<void*>(\exposid{p})} and
58605860
\item
58615861
any modification of \tcode{*v}
58625862
that is not followed by subsequent modification of \tcode{*this}
5863-
affects the value of \tcode{p} during the destruction of \tcode{*this},
5864-
such that \tcode{static_cast<void*>(p) == *v}.
5863+
affects the value of \exposid{p} during the destruction of \tcode{*this},
5864+
such that \tcode{static_cast<void*>(\exposid{p}) == *v}.
58655865
\end{itemize}
58665866

58675867
\pnum

0 commit comments

Comments
 (0)