Skip to content

Commit 4b06b25

Browse files
committed
[string.capacity] Use \tcode+\placeholder for placeholder
1 parent da76f01 commit 4b06b25

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/strings.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,40 +2948,40 @@
29482948
\tcode{m} be a value of type \tcode{size_type} or \tcode{const size_type}
29492949
equal to \tcode{n}.
29502950
\item
2951-
$OP$ be the expression \tcode{std::move(op)(p, m)}.
2951+
\tcode{\placeholder{OP}} be the expression \tcode{std::move(op)(p, m)}.
29522952
\item
2953-
\tcode{r} = $OP$.
2953+
\tcode{r} = \tcode{\placeholder{OP}}.
29542954
\end{itemize}
29552955

29562956
\pnum
29572957
\mandates
2958-
$OP$ has an integer-like type\iref{iterator.concept.winc}.
2958+
\tcode{\placeholder{OP}} has an integer-like type\iref{iterator.concept.winc}.
29592959

29602960
\pnum
29612961
\expects
29622962
\begin{itemize}
29632963
\item
2964-
$OP$ does not throw an exception or modify \tcode{p} or \tcode{m}.
2964+
\tcode{\placeholder{OP}} does not throw an exception or modify \tcode{p} or \tcode{m}.
29652965
\item
29662966
$\tcode{r} \geq 0$.
29672967
\item
29682968
$\tcode{r} \leq \tcode{m}$.
29692969
\item
2970-
After evaluating $OP$
2970+
After evaluating \tcode{\placeholder{OP}}
29712971
there are no indeterminate values in the range \range{p}{p + r}.
29722972
\end{itemize}
29732973

29742974
\pnum
29752975
\effects
2976-
Evaluates $OP$,
2976+
Evaluates \tcode{\placeholder{OP}},
29772977
replaces the contents of \tcode{*this} with \range{p}{p + r}, and
29782978
invalidates all pointers and references to the range \crange{p}{p + n}.
29792979

29802980
\pnum
29812981
\recommended
29822982
Implementations should avoid unnecessary copies and allocations
29832983
by, for example, making \tcode{p} a pointer into internal storage and
2984-
by restoring \tcode{*(p + r)} to \tcode{charT()} after evaluating $OP$.
2984+
by restoring \tcode{*(p + r)} to \tcode{charT()} after evaluating \tcode{\placeholder{OP}}.
29852985
\end{itemdescr}
29862986

29872987
\indexlibrarymember{capacity}{basic_string}%

0 commit comments

Comments
 (0)