Skip to content

Commit 3039517

Browse files
Eelisfrederick-vs-ja
authored andcommitted
Use \range where appropriate.
(cherry picked from commit 07e995f)
1 parent 13ba96c commit 3039517

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/algorithms.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -7584,7 +7584,7 @@
75847584
are partitioned with respect to the expressions
75857585
\tcode{bool(invoke(comp, invoke(proj, e), value))} and
75867586
\tcode{!bool(invoke(comp, value, invoke(proj, e)))}.
7587-
Also, for all elements \tcode{e} of \tcode{[first, last)},
7587+
Also, for all elements \tcode{e} of \range{first}{last},
75887588
\tcode{bool(comp(e, value))} implies \tcode{!bool(comp(\brk{}value, e))}
75897589
for the overloads in namespace \tcode{std}.
75907590

@@ -7651,7 +7651,7 @@
76517651
are partitioned with respect to the expressions
76527652
\tcode{bool(invoke(comp, invoke(proj, e), value))} and
76537653
\tcode{!bool(invoke(comp, value, invoke(proj, e)))}.
7654-
Also, for all elements \tcode{e} of \tcode{[first, last)},
7654+
Also, for all elements \tcode{e} of \range{first}{last},
76557655
\tcode{bool(comp(e, value))} implies \tcode{!bool(comp(\brk{}value, e))}
76567656
for the overloads in namespace \tcode{std}.
76577657

@@ -10837,7 +10837,7 @@
1083710837
\pnum
1083810838
For the overloads with an \tcode{ExecutionPolicy} and a non-empty range,
1083910839
performs \tcode{*result = *first}.
10840-
Then, for every \tcode{d} in \tcode{[1, last - first - 1]},
10840+
Then, for every \tcode{d} in \crange{1}{last - first - 1},
1084110841
performs \tcode{*(result + d) = binary_op(*(first + d), *(first + (d - 1)))}.
1084210842

1084310843
\pnum

source/strings.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,19 @@
151151
the smallest \tcode{q} in \tcode{[p,p+n)} such that
152152
\tcode{X::eq(*q,c)} is \tcode{true}, \tcode{nullptr} otherwise. & linear \\ \rowsep
153153
\tcode{X::move(s,p,n)} & \tcode{X::char_type*} &
154-
for each \tcode{i} in \tcode{[0,n)}, performs \tcode{X::assign(s[i],p[i])}.
155-
Copies correctly even where the ranges \tcode{[p,p+n)} and \tcode{[s,s+n)} overlap.\br \returns \tcode{s}. & linear \\ \rowsep
154+
for each \tcode{i} in \range{0}{n}, performs \tcode{X::assign(s[i],p[i])}.
155+
Copies correctly even where the ranges \range{p}{p+n} and \range{s}{s+n} overlap.\br \returns \tcode{s}. & linear \\ \rowsep
156156
\tcode{X::copy(s,p,n)} & \tcode{X::char_type*} &
157157
\expects
158158
The ranges \range{p}{p+n} and \range{s}{s+n} do not overlap.\par
159159
\returns
160160
\tcode{s}.\br
161161
for each \tcode{i} in
162-
\tcode{[0,n)}, performs \tcode{X::assign(s[i],p[i])}. & linear \\ \rowsep
162+
\range{0}{n}, performs \tcode{X::assign(s[i],p[i])}. & linear \\ \rowsep
163163
\tcode{X::assign(r,d)} & (not used) &
164164
assigns \tcode{r=d}. & constant \\ \rowsep
165165
\tcode{X::assign\-(s,n,c)} & \tcode{X::char_type*} &
166-
for each \tcode{i} in \tcode{[0,n)}, performs
166+
for each \tcode{i} in \range{0}{n}, performs
167167
\tcode{X::assign(s[i],c)}.\br
168168
\returns
169169
\tcode{s}. & linear \\ \rowsep

0 commit comments

Comments
 (0)