|
3631 | 3631 |
|
3632 | 3632 | \pnum
|
3633 | 3633 | \complexity
|
3634 |
| -Applies \tcode{f} exactly \tcode{last - first} times. |
| 3634 | +Applies \tcode{f} at most \tcode{last - first} times. |
3635 | 3635 |
|
3636 | 3636 | \pnum
|
3637 | 3637 | \remarks
|
|
3662 | 3662 |
|
3663 | 3663 | \pnum
|
3664 | 3664 | \complexity
|
3665 |
| -Applies \tcode{f} exactly \tcode{last - first} times. |
| 3665 | +Applies \tcode{f} at most \tcode{last - first} times. |
3666 | 3666 |
|
3667 | 3667 | \pnum
|
3668 | 3668 | \remarks
|
|
3707 | 3707 |
|
3708 | 3708 | \pnum
|
3709 | 3709 | \complexity
|
3710 |
| -Applies \tcode{f} and \tcode{proj} exactly \tcode{last - first} times. |
| 3710 | +Applies \tcode{f} and \tcode{proj} at most \tcode{last - first} times. |
3711 | 3711 |
|
3712 | 3712 | \pnum
|
3713 | 3713 | \remarks
|
|
4172 | 4172 | \pnum
|
4173 | 4173 | \complexity
|
4174 | 4174 | For the overloads with no \tcode{ExecutionPolicy},
|
4175 |
| -exactly \[ \min(\tcode{(i - first) + 1}, \ \tcode{(last - first) - 1}) \] |
| 4175 | +at most \[ \min(\tcode{(i - first) + 1}, \ \tcode{(last - first) - 1}) \] |
4176 | 4176 | applications of the corresponding predicate,
|
4177 | 4177 | where \tcode{i} is \tcode{adjacent_find}'s return value.
|
4178 | 4178 | For the overloads with an \tcode{ExecutionPolicy},
|
|
4246 | 4246 |
|
4247 | 4247 | \pnum
|
4248 | 4248 | \complexity
|
4249 |
| -Exactly \tcode{last - first} applications |
| 4249 | +At most \tcode{last - first} applications |
4250 | 4250 | of the corresponding predicate and any projection.
|
4251 | 4251 | \end{itemdescr}
|
4252 | 4252 |
|
|
4520 | 4520 | if \tcode{ForwardIterator1} and \tcode{Forward\-Iter\-ator2}
|
4521 | 4521 | meet the requirements of random access iterators and
|
4522 | 4522 | \tcode{last1 - first1 != last2 - first2}.
|
4523 |
| -Otherwise, exactly \tcode{last1 - first1} applications |
| 4523 | +Otherwise, at most \tcode{last1 - first1} applications |
4524 | 4524 | of the corresponding predicate
|
4525 | 4525 | if \tcode{equal(first1, last1, first2, last2, pred)} would return \tcode{true};
|
4526 | 4526 | otherwise, at worst \bigoh{N^2}, where $N$ has the value \tcode{last1 - first1}.
|
|
4570 | 4570 | \tcode{R1} and \tcode{R2} each model \libconcept{sized_range}, and
|
4571 | 4571 | \tcode{ranges::distance(r1) != ranges::distance(r2)}.
|
4572 | 4572 | \end{itemize}
|
4573 |
| -Otherwise, exactly \tcode{last1 - first1} applications |
| 4573 | +Otherwise, at most \tcode{last1 - first1} applications |
4574 | 4574 | of the corresponding predicate and projections
|
4575 | 4575 | if \tcode{ranges::equal(\brk{}first1, last1, first2, last2, pred, proj1, proj2)}
|
4576 | 4576 | would return \tcode{true};
|
|
5056 | 5056 |
|
5057 | 5057 | \pnum
|
5058 | 5058 | \complexity
|
5059 |
| -Exactly $N$ assignments. |
| 5059 | +At most $N$ assignments. |
5060 | 5060 | \end{itemdescr}
|
5061 | 5061 |
|
5062 | 5062 | \indexlibraryglobal{copy}%
|
|
5086 | 5086 |
|
5087 | 5087 | \pnum
|
5088 | 5088 | \complexity
|
5089 |
| -Exactly \tcode{last - first} assignments. |
| 5089 | +At most \tcode{last - first} assignments. |
5090 | 5090 | \end{itemdescr}
|
5091 | 5091 |
|
5092 | 5092 | \indexlibraryglobal{copy_n}%
|
|
5132 | 5132 |
|
5133 | 5133 | \pnum
|
5134 | 5134 | \complexity
|
5135 |
| -Exactly $N$ assignments. |
| 5135 | +At most $N$ assignments. |
5136 | 5136 | \end{itemdescr}
|
5137 | 5137 |
|
5138 | 5138 | \indexlibraryglobal{copy_if}%
|
|
5202 | 5202 |
|
5203 | 5203 | \pnum
|
5204 | 5204 | \complexity
|
5205 |
| -Exactly \tcode{last - first} applications |
| 5205 | +At most \tcode{last - first} applications |
5206 | 5206 | of the corresponding predicate and any projection.
|
5207 | 5207 |
|
5208 | 5208 | \pnum
|
|
5261 | 5261 |
|
5262 | 5262 | \pnum
|
5263 | 5263 | \complexity
|
5264 |
| -Exactly $N$ assignments. |
| 5264 | +At most $N$ assignments. |
5265 | 5265 | \end{itemdescr}
|
5266 | 5266 |
|
5267 | 5267 | \rSec2[alg.move]{Move}
|
|
5319 | 5319 |
|
5320 | 5320 | \pnum
|
5321 | 5321 | \complexity
|
5322 |
| -Exactly $N$ assignments. |
| 5322 | +At most $N$ assignments. |
5323 | 5323 | \end{itemdescr}
|
5324 | 5324 |
|
5325 | 5325 | \indexlibrary{\idxcode{move}!algorithm}%
|
|
5352 | 5352 |
|
5353 | 5353 | \pnum
|
5354 | 5354 | \complexity
|
5355 |
| -Exactly $N$ assignments. |
| 5355 | +At most $N$ assignments. |
5356 | 5356 | \end{itemdescr}
|
5357 | 5357 |
|
5358 | 5358 | \indexlibraryglobal{move_backward}%
|
|
5414 | 5414 |
|
5415 | 5415 | \pnum
|
5416 | 5416 | \complexity
|
5417 |
| -Exactly $N$ assignments. |
| 5417 | +At most $N$ assignments. |
5418 | 5418 | \end{itemdescr}
|
5419 | 5419 |
|
5420 | 5420 | \rSec2[alg.swap]{Swap}
|
|
5484 | 5484 |
|
5485 | 5485 | \pnum
|
5486 | 5486 | \complexity
|
5487 |
| -Exactly $M$ swaps. |
| 5487 | +At most $M$ swaps. |
5488 | 5488 | \end{itemdescr}
|
5489 | 5489 |
|
5490 | 5490 | \indexlibraryglobal{iter_swap}%
|
|
5626 | 5626 |
|
5627 | 5627 | \pnum
|
5628 | 5628 | \complexity
|
5629 |
| -Exactly $N$ applications of \tcode{op} or \tcode{binary_op}, and |
| 5629 | +At most $N$ applications of \tcode{op} or \tcode{binary_op}, and |
5630 | 5630 | any projections.
|
5631 | 5631 | This requirement also applies to the overload with an \tcode{ExecutionPolicy}.
|
5632 | 5632 |
|
|
5710 | 5710 |
|
5711 | 5711 | \pnum
|
5712 | 5712 | \complexity
|
5713 |
| -Exactly \tcode{last - first} applications |
| 5713 | +At most \tcode{last - first} applications |
5714 | 5714 | of the corresponding predicate and any projection.
|
5715 | 5715 | \end{itemdescr}
|
5716 | 5716 |
|
|
5821 | 5821 |
|
5822 | 5822 | \pnum
|
5823 | 5823 | \complexity
|
5824 |
| -Exactly \tcode{last - first} applications |
| 5824 | +At most \tcode{last - first} applications |
5825 | 5825 | of the corresponding predicate and any projection.
|
5826 | 5826 | \end{itemdescr}
|
5827 | 5827 |
|
|
5878 | 5878 |
|
5879 | 5879 | \pnum
|
5880 | 5880 | \complexity
|
5881 |
| -Exactly $N$ assignments. |
| 5881 | +At most $N$ assignments. |
5882 | 5882 | \end{itemdescr}
|
5883 | 5883 |
|
5884 | 5884 | \rSec2[alg.generate]{Generate}
|
|
5932 | 5932 |
|
5933 | 5933 | \pnum
|
5934 | 5934 | \complexity
|
5935 |
| -Exactly $N$ evaluations of \tcode{gen()} and assignments. |
| 5935 | +At most $N$ evaluations of \tcode{gen()} and assignments. |
5936 | 5936 | \end{itemdescr}
|
5937 | 5937 |
|
5938 | 5938 | \rSec2[alg.remove]{Remove}
|
|
6008 | 6008 |
|
6009 | 6009 | \pnum
|
6010 | 6010 | \complexity
|
6011 |
| -Exactly \tcode{last - first} applications |
| 6011 | +At most \tcode{last - first} applications |
6012 | 6012 | of the corresponding predicate and any projection.
|
6013 | 6013 |
|
6014 | 6014 | \pnum
|
|
6118 | 6118 |
|
6119 | 6119 | \pnum
|
6120 | 6120 | \complexity
|
6121 |
| -Exactly \tcode{last - first} applications |
| 6121 | +At most \tcode{last - first} applications |
6122 | 6122 | of the corresponding predicate and any projection.
|
6123 | 6123 |
|
6124 | 6124 | \pnum
|
|
6193 | 6193 |
|
6194 | 6194 | \pnum
|
6195 | 6195 | \complexity
|
6196 |
| -For nonempty ranges, exactly \tcode{(last - first) - 1} applications |
| 6196 | +For nonempty ranges, at most \tcode{(last - first) - 1} applications |
6197 | 6197 | of the corresponding predicate and
|
6198 | 6198 | no more than twice as many applications of any projection.
|
6199 | 6199 | \end{itemdescr}
|
|
6308 | 6308 |
|
6309 | 6309 | \pnum
|
6310 | 6310 | \complexity
|
6311 |
| -Exactly \tcode{last - first - 1} applications |
| 6311 | +At most \tcode{last - first - 1} applications |
6312 | 6312 | of the corresponding predicate
|
6313 | 6313 | and no more than twice as many applications of any projection.
|
6314 | 6314 | \end{itemdescr}
|
|
6351 | 6351 |
|
6352 | 6352 | \pnum
|
6353 | 6353 | \complexity
|
6354 |
| -Exactly \tcode{(last - first)/2} swaps. |
| 6354 | +At most \tcode{(last - first)/2} swaps. |
6355 | 6355 | \end{itemdescr}
|
6356 | 6356 |
|
6357 | 6357 | \indexlibraryglobal{reverse_copy}%
|
|
6403 | 6403 |
|
6404 | 6404 | \pnum
|
6405 | 6405 | \complexity
|
6406 |
| -Exactly $N$ assignments. |
| 6406 | +At most $N$ assignments. |
6407 | 6407 | \end{itemdescr}
|
6408 | 6408 |
|
6409 | 6409 | \rSec2[alg.rotate]{Rotate}
|
|
6517 | 6517 |
|
6518 | 6518 | \pnum
|
6519 | 6519 | \complexity
|
6520 |
| -Exactly $N$ assignments. |
| 6520 | +At most $N$ assignments. |
6521 | 6521 | \end{itemdescr}
|
6522 | 6522 |
|
6523 | 6523 | \begin{itemdecl}
|
|
6664 | 6664 |
|
6665 | 6665 | \pnum
|
6666 | 6666 | \complexity
|
6667 |
| -Exactly \tcode{(last - first) - 1} swaps. |
| 6667 | +At most \tcode{(last - first) - 1} swaps. |
6668 | 6668 |
|
6669 | 6669 | \pnum
|
6670 | 6670 | \remarks
|
|
7743 | 7743 | \begin{itemize}
|
7744 | 7744 | \item
|
7745 | 7745 | For the overload with no \tcode{ExecutionPolicy},
|
7746 |
| - exactly $N$ applications of the predicate and projection. |
| 7746 | + at most $N$ applications of the predicate and projection. |
7747 | 7747 | At most $N / 2$ swaps if the type of \tcode{first} meets
|
7748 | 7748 | the \oldconcept{BidirectionalIterator} requirements
|
7749 | 7749 | for the overloads in namespace \tcode{std} or
|
|
7819 | 7819 | \item
|
7820 | 7820 | For the overloads with no \tcode{ExecutionPolicy}, at most $N \log_2 N$ swaps,
|
7821 | 7821 | but only \bigoh{N} swaps if there is enough extra memory.
|
7822 |
| - Exactly $N$ applications of the predicate and projection. |
| 7822 | + At most $N$ applications of the predicate and projection. |
7823 | 7823 | \item
|
7824 | 7824 | For the overload with an \tcode{ExecutionPolicy},
|
7825 | 7825 | \bigoh{N \log N} swaps and \bigoh{N} applications of the predicate.
|
|
7896 | 7896 |
|
7897 | 7897 | \pnum
|
7898 | 7898 | \complexity
|
7899 |
| -Exactly \tcode{last - first} applications of \tcode{pred} and \tcode{proj}. |
| 7899 | +At most \tcode{last - first} applications of \tcode{pred} and \tcode{proj}. |
7900 | 7900 | \end{itemdescr}
|
7901 | 7901 |
|
7902 | 7902 | \indexlibraryglobal{partition_point}%
|
|
8982 | 8982 |
|
8983 | 8983 | \pnum
|
8984 | 8984 | \complexity
|
8985 |
| -Exactly one comparison and two applications of the projection, if any. |
| 8985 | +At most one comparison and two applications of the projection, if any. |
8986 | 8986 |
|
8987 | 8987 | \pnum
|
8988 | 8988 | \remarks
|
|
9025 | 9025 |
|
9026 | 9026 | \pnum
|
9027 | 9027 | \complexity
|
9028 |
| -Exactly \tcode{ranges::distance(r) - 1} comparisons |
| 9028 | +At most \tcode{ranges::distance(r) - 1} comparisons |
9029 | 9029 | and twice as many applications of the projection, if any.
|
9030 | 9030 |
|
9031 | 9031 | \pnum
|
|
9060 | 9060 |
|
9061 | 9061 | \pnum
|
9062 | 9062 | \complexity
|
9063 |
| -Exactly one comparison and two applications of the projection, if any. |
| 9063 | +At most one comparison and two applications of the projection, if any. |
9064 | 9064 |
|
9065 | 9065 | \pnum
|
9066 | 9066 | \remarks
|
|
9103 | 9103 |
|
9104 | 9104 | \pnum
|
9105 | 9105 | \complexity
|
9106 |
| -Exactly \tcode{ranges::distance(r) - 1} comparisons |
| 9106 | +At most \tcode{ranges::distance(r) - 1} comparisons |
9107 | 9107 | and twice as many applications of the projection, if any.
|
9108 | 9108 |
|
9109 | 9109 | \pnum
|
|
9140 | 9140 |
|
9141 | 9141 | \pnum
|
9142 | 9142 | \complexity
|
9143 |
| -Exactly one comparison and two applications of the projection, if any. |
| 9143 | +At most one comparison and two applications of the projection, if any. |
9144 | 9144 |
|
9145 | 9145 | \pnum
|
9146 | 9146 | \remarks
|
|
9240 | 9240 |
|
9241 | 9241 | \pnum
|
9242 | 9242 | \complexity
|
9243 |
| -Exactly $\max(\tcode{last - first - 1}, 0)$ comparisons and |
| 9243 | +At most $\max(\tcode{last - first - 1}, 0)$ comparisons and |
9244 | 9244 | twice as many projections.
|
9245 | 9245 | \end{itemdescr}
|
9246 | 9246 |
|
|
9287 | 9287 |
|
9288 | 9288 | \pnum
|
9289 | 9289 | \complexity
|
9290 |
| -Exactly $\max(\tcode{last - first - 1}, 0)$ comparisons and |
| 9290 | +At most $\max(\tcode{last - first - 1}, 0)$ comparisons and |
9291 | 9291 | twice as many projections.
|
9292 | 9292 | \end{itemdescr}
|
9293 | 9293 |
|
|
10319 | 10319 |
|
10320 | 10320 | \pnum
|
10321 | 10321 | \complexity
|
10322 |
| -Exactly \tcode{(last - first) - 1} applications of the binary operation. |
| 10322 | +At most \tcode{(last - first) - 1} applications of the binary operation. |
10323 | 10323 |
|
10324 | 10324 | \pnum
|
10325 | 10325 | \remarks
|
|
10831 | 10831 |
|
10832 | 10832 | \pnum
|
10833 | 10833 | \complexity
|
10834 |
| -Exactly \tcode{(last - first) - 1} applications of the binary operation. |
| 10834 | +At most \tcode{(last - first) - 1} applications of the binary operation. |
10835 | 10835 |
|
10836 | 10836 | \pnum
|
10837 | 10837 | \remarks
|
|
10866 | 10866 |
|
10867 | 10867 | \pnum
|
10868 | 10868 | \complexity
|
10869 |
| -Exactly \tcode{last - first} increments and assignments. |
| 10869 | +At most \tcode{last - first} increments and assignments. |
10870 | 10870 | \end{itemdescr}
|
10871 | 10871 |
|
10872 | 10872 | \indexlibraryglobal{iota}%
|
|
0 commit comments