Skip to content

Commit cabd788

Browse files
committed
[everywhere] Convert '\footnote' to 'footnote' environment
1 parent 04a8eba commit cabd788

27 files changed

+1619
-689
lines changed

source/algorithms.tex

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,16 @@
129129
\end{note}
130130

131131
\pnum
132-
Both in-place and copying versions are provided for certain algorithms.%
133-
\footnote{The decision whether to include a copying version was
132+
Both in-place and copying versions are provided for certain algorithms.
133+
\begin{footnote}
134+
The decision whether to include a copying version was
134135
usually based on complexity considerations.
135136
When the cost of doing the operation dominates the cost of copy,
136137
the copying version is not included.
137138
For example, \tcode{sort_copy} is not included
138139
because the cost of sorting is much more significant,
139-
and users might as well do \tcode{copy} followed by \tcode{sort}.}
140+
and users might as well do \tcode{copy} followed by \tcode{sort}.
141+
\end{footnote}
140142
When such a version is provided for \textit{algorithm} it is called
141143
\textit{algorithm\tcode{_copy}}.
142144
Algorithms that take predicates end with the suffix \tcode{_if}
@@ -4445,9 +4447,11 @@
44454447
\effects
44464448
Copies elements in the range \range{first}{last}
44474449
into the range \range{result - $N$}{result}
4448-
starting from \tcode{last - 1} and proceeding to \tcode{first}.%
4449-
\footnote{\tcode{copy_backward} can be used instead of copy
4450-
when \tcode{last} is in the range \range{result - $N$}{result}.}
4450+
starting from \tcode{last - 1} and proceeding to \tcode{first}.
4451+
\begin{footnote}
4452+
\tcode{copy_backward} can be used instead of copy
4453+
when \tcode{last} is in the range \range{result - $N$}{result}.
4454+
\end{footnote}
44514455
For each positive integer $n \le N$,
44524456
performs \tcode{*(result - $n$) = *(last - $n$)}.
44534457

@@ -4596,9 +4600,11 @@
45964600
\effects
45974601
Moves elements in the range \range{first}{last}
45984602
into the range \range{result - $N$}{result}
4599-
starting from \tcode{last - 1} and proceeding to \tcode{first}.%
4600-
\footnote{\tcode{move_backward} can be used instead of move
4601-
when \tcode{last} is in the range \range{result - $N$}{result}.}
4603+
starting from \tcode{last - 1} and proceeding to \tcode{first}.
4604+
\begin{footnote}
4605+
\tcode{move_backward} can be used instead of move
4606+
when \tcode{last} is in the range \range{result - $N$}{result}.
4607+
\end{footnote}
46024608
For each positive integer $n \le N$,
46034609
performs \tcode{*(result - $n$) = $E$}.
46044610

@@ -4799,8 +4805,10 @@
47994805
\begin{itemize}
48004806
\item \crange{first1}{first1 + $N$},
48014807
\item \crange{first2}{first2 + $N$}, and
4802-
\item \crange{result}{result + $N$}.%
4803-
\footnote{The use of fully closed ranges is intentional.}
4808+
\item \crange{result}{result + $N$}.
4809+
\begin{footnote}
4810+
The use of fully closed ranges is intentional.
4811+
\end{footnote}
48044812
\end{itemize}
48054813

48064814
\pnum
@@ -8451,8 +8459,11 @@
84518459
\tcode{\{first, first\}} if \range{first}{last} is empty, otherwise
84528460
\tcode{\{m, M\}}, where \tcode{m} is
84538461
the first iterator in \range{first}{last} such that no iterator in the range refers
8454-
to a smaller element, and where \tcode{M} is the last iterator\footnote{This behavior
8455-
intentionally differs from \tcode{max_element}.}
8462+
to a smaller element, and where \tcode{M} is the last iterator
8463+
\begin{footnote}
8464+
This behavior
8465+
intentionally differs from \tcode{max_element}.
8466+
\end{footnote}
84568467
in \range{first}{last} such that no iterator in the range refers to a larger element.
84578468

84588469
\pnum
@@ -9033,8 +9044,10 @@
90339044
and \oldconcept{CopyAssignable} (\tref{cpp17.copyassignable}) requirements.
90349045
In the range \crange{first}{last},
90359046
\tcode{binary_op} neither modifies elements
9036-
nor invalidates iterators or subranges.%
9037-
\footnote{The use of fully closed ranges is intentional.}
9047+
nor invalidates iterators or subranges.
9048+
\begin{footnote}
9049+
The use of fully closed ranges is intentional.
9050+
\end{footnote}
90389051

90399052
\pnum
90409053
\effects
@@ -9043,11 +9056,13 @@
90439056
and then modifies it with
90449057
\tcode{acc = std::move(acc) + *i} or
90459058
\tcode{acc = binary_op(std::move(acc), *i)}
9046-
for every iterator \tcode{i} in the range \range{first}{last} in order.%
9047-
\footnote{\tcode{accumulate} is similar
9059+
for every iterator \tcode{i} in the range \range{first}{last} in order.
9060+
\begin{footnote}
9061+
\tcode{accumulate} is similar
90489062
to the APL reduction operator and Common Lisp reduce function,
90499063
but it avoids the difficulty of defining the result of reduction
9050-
on an empty sequence by always requiring an initial value.}
9064+
on an empty sequence by always requiring an initial value.
9065+
\end{footnote}
90519066
\end{itemdescr}
90529067

90539068
\rSec2[reduce]{Reduce}
@@ -9197,8 +9212,10 @@
91979212
In the ranges \crange{first1}{last1} and
91989213
\crange{first2}{first2 + (last1 - first1)}
91999214
\tcode{binary_op1} and \tcode{binary_op2}
9200-
neither modifies elements nor invalidates iterators or subranges.%
9201-
\footnote{The use of fully closed ranges is intentional.}
9215+
neither modifies elements nor invalidates iterators or subranges.
9216+
\begin{footnote}
9217+
The use of fully closed ranges is intentional.
9218+
\end{footnote}
92029219

92039220
\pnum
92049221
\effects
@@ -9387,8 +9404,10 @@
93879404
\expects
93889405
In the ranges \crange{first}{last} and \crange{result}{result + (last - first)}
93899406
\tcode{binary_op} neither modifies elements
9390-
nor invalidates iterators or subranges.%
9391-
\footnote{The use of fully closed ranges is intentional.}
9407+
nor invalidates iterators or subranges.
9408+
\begin{footnote}
9409+
The use of fully closed ranges is intentional.
9410+
\end{footnote}
93929411

93939412
\pnum
93949413
\effects
@@ -9889,8 +9908,10 @@
98899908
For all overloads, in the ranges \crange{first}{last}
98909909
and \crange{result}{result + (last - first)},
98919910
\tcode{binary_op} neither modifies elements
9892-
nor invalidate iterators or subranges.%
9893-
\footnote{The use of fully closed ranges is intentional.}
9911+
nor invalidate iterators or subranges.
9912+
\begin{footnote}
9913+
The use of fully closed ranges is intentional.
9914+
\end{footnote}
98949915
\end{itemize}
98959916

98969917

source/atomics.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,12 @@
637637

638638
\pnum
639639
\recommended
640-
Operations that are lock-free should also be address-free%
641-
\footnote{
640+
Operations that are lock-free should also be address-free
641+
\begin{footnote}
642642
That is,
643643
atomic operations on the same memory location via two different addresses will
644-
communicate atomically.}.
644+
communicate atomically.
645+
\end{footnote}.
645646
The implementation of these operations should not depend on any per-process state.
646647
\begin{note}
647648
This restriction enables communication by memory that is

0 commit comments

Comments
 (0)