|
4640 | 4640 |
|
4641 | 4641 | \pnum
|
4642 | 4642 | \complexity
|
4643 |
| -Applies \tcode{f} exactly \tcode{last - first} times. |
| 4643 | +Applies \tcode{f} at most \tcode{last - first} times. |
4644 | 4644 |
|
4645 | 4645 | \pnum
|
4646 | 4646 | \remarks
|
|
4671 | 4671 |
|
4672 | 4672 | \pnum
|
4673 | 4673 | \complexity
|
4674 |
| -Applies \tcode{f} exactly \tcode{last - first} times. |
| 4674 | +Applies \tcode{f} at most \tcode{last - first} times. |
4675 | 4675 |
|
4676 | 4676 | \pnum
|
4677 | 4677 | \remarks
|
|
4716 | 4716 |
|
4717 | 4717 | \pnum
|
4718 | 4718 | \complexity
|
4719 |
| -Applies \tcode{f} and \tcode{proj} exactly \tcode{last - first} times. |
| 4719 | +Applies \tcode{f} and \tcode{proj} at most \tcode{last - first} times. |
4720 | 4720 |
|
4721 | 4721 | \pnum
|
4722 | 4722 | \remarks
|
|
5368 | 5368 | \pnum
|
5369 | 5369 | \complexity
|
5370 | 5370 | For the non-parallel algorithm overloads,
|
5371 |
| -exactly \[ \min(\tcode{(i - first) + 1}, \ \tcode{(last - first) - 1}) \] |
| 5371 | +at most \[ \min(\tcode{(i - first) + 1}, \ \tcode{(last - first) - 1}) \] |
5372 | 5372 | applications of the corresponding predicate,
|
5373 | 5373 | where \tcode{i} is \tcode{adjacent_find}'s return value.
|
5374 | 5374 | For the parallel algorithm overloads,
|
|
5463 | 5463 |
|
5464 | 5464 | \pnum
|
5465 | 5465 | \complexity
|
5466 |
| -Exactly \tcode{last - first} applications |
| 5466 | +At most \tcode{last - first} applications |
5467 | 5467 | of the corresponding predicate and any projection.
|
5468 | 5468 | \end{itemdescr}
|
5469 | 5469 |
|
|
5755 | 5755 | if \tcode{ForwardIterator1} and \tcode{Forward\-Iter\-ator2}
|
5756 | 5756 | meet the requirements of random access iterators and
|
5757 | 5757 | \tcode{last1 - first1 != last2 - first2}.
|
5758 |
| -Otherwise, exactly \tcode{last1 - first1} applications |
| 5758 | +Otherwise, at most \tcode{last1 - first1} applications |
5759 | 5759 | of the corresponding predicate
|
5760 | 5760 | if \tcode{equal(first1, last1, first2, last2, pred)} would return \tcode{true};
|
5761 | 5761 | otherwise, at worst \bigoh{N^2}, where $N$ has the value \tcode{last1 - first1}.
|
|
5805 | 5805 | \tcode{R1} and \tcode{R2} each model \libconcept{sized_range}, and
|
5806 | 5806 | \tcode{ranges::distance(r1) != ranges::distance(r2)}.
|
5807 | 5807 | \end{itemize}
|
5808 |
| -Otherwise, exactly \tcode{last1 - first1} applications |
| 5808 | +Otherwise, at most \tcode{last1 - first1} applications |
5809 | 5809 | of the corresponding predicate and projections
|
5810 | 5810 | if \tcode{ranges::equal(\brk{}first1, last1, first2, last2, pred, proj1, proj2)}
|
5811 | 5811 | would return \tcode{true};
|
|
6390 | 6390 |
|
6391 | 6391 | \pnum
|
6392 | 6392 | \complexity
|
6393 |
| -Exactly $N$ assignments. |
| 6393 | +At most $N$ assignments. |
6394 | 6394 | \end{itemdescr}
|
6395 | 6395 |
|
6396 | 6396 | \indexlibraryglobal{copy}%
|
|
6442 | 6442 |
|
6443 | 6443 | \pnum
|
6444 | 6444 | \complexity
|
6445 |
| -Exactly $N$ assignments. |
| 6445 | +At most $N$ assignments. |
6446 | 6446 | \end{itemdescr}
|
6447 | 6447 |
|
6448 | 6448 | \indexlibraryglobal{copy_n}%
|
|
6501 | 6501 |
|
6502 | 6502 | \pnum
|
6503 | 6503 | \complexity
|
6504 |
| -Exactly $N$ assignments. |
| 6504 | +At most $N$ assignments. |
6505 | 6505 | \end{itemdescr}
|
6506 | 6506 |
|
6507 | 6507 | \indexlibraryglobal{copy_if}%
|
|
6666 | 6666 |
|
6667 | 6667 | \pnum
|
6668 | 6668 | \complexity
|
6669 |
| -Exactly $N$ assignments. |
| 6669 | +At most $N$ assignments. |
6670 | 6670 | \end{itemdescr}
|
6671 | 6671 |
|
6672 | 6672 | \rSec2[alg.move]{Move}
|
|
6724 | 6724 |
|
6725 | 6725 | \pnum
|
6726 | 6726 | \complexity
|
6727 |
| -Exactly $N$ assignments. |
| 6727 | +At most $N$ assignments. |
6728 | 6728 | \end{itemdescr}
|
6729 | 6729 |
|
6730 | 6730 | \indexlibrary{\idxcode{move}!algorithm}%
|
|
6789 | 6789 |
|
6790 | 6790 | \pnum
|
6791 | 6791 | \complexity
|
6792 |
| -Exactly $N$ assignments. |
| 6792 | +At most $N$ assignments. |
6793 | 6793 | \end{itemdescr}
|
6794 | 6794 |
|
6795 | 6795 | \indexlibraryglobal{move_backward}%
|
|
6851 | 6851 |
|
6852 | 6852 | \pnum
|
6853 | 6853 | \complexity
|
6854 |
| -Exactly $N$ assignments. |
| 6854 | +At most $N$ assignments. |
6855 | 6855 | \end{itemdescr}
|
6856 | 6856 |
|
6857 | 6857 | \rSec2[alg.swap]{Swap}
|
|
6932 | 6932 |
|
6933 | 6933 | \pnum
|
6934 | 6934 | \complexity
|
6935 |
| -Exactly $M$ swaps. |
| 6935 | +At most $M$ swaps. |
6936 | 6936 | \end{itemdescr}
|
6937 | 6937 |
|
6938 | 6938 | \indexlibraryglobal{iter_swap}%
|
|
7119 | 7119 |
|
7120 | 7120 | \pnum
|
7121 | 7121 | \complexity
|
7122 |
| -Exactly $N$ applications of \tcode{op} or \tcode{binary_op}, and |
| 7122 | +At most $N$ applications of \tcode{op} or \tcode{binary_op}, and |
7123 | 7123 | any projections.
|
7124 | 7124 | This requirement also applies to the parallel algorithm overloads.
|
7125 | 7125 |
|
|
7231 | 7231 |
|
7232 | 7232 | \pnum
|
7233 | 7233 | \complexity
|
7234 |
| -Exactly \tcode{last - first} applications |
| 7234 | +At most \tcode{last - first} applications |
7235 | 7235 | of the corresponding predicate and any projection.
|
7236 | 7236 | \end{itemdescr}
|
7237 | 7237 |
|
|
7389 | 7389 |
|
7390 | 7390 | \pnum
|
7391 | 7391 | \complexity
|
7392 |
| -Exactly $N$ applications |
| 7392 | +At most $N$ applications |
7393 | 7393 | of the corresponding predicate and any projection.
|
7394 | 7394 | \end{itemdescr}
|
7395 | 7395 |
|
|
7457 | 7457 |
|
7458 | 7458 | \pnum
|
7459 | 7459 | \complexity
|
7460 |
| -Exactly $N$ assignments. |
| 7460 | +At most $N$ assignments. |
7461 | 7461 | \end{itemdescr}
|
7462 | 7462 |
|
7463 | 7463 | \rSec2[alg.generate]{Generate}
|
|
7522 | 7522 |
|
7523 | 7523 | \pnum
|
7524 | 7524 | \complexity
|
7525 |
| -Exactly $N$ evaluations of \tcode{gen()} and assignments. |
| 7525 | +At most $N$ evaluations of \tcode{gen()} and assignments. |
7526 | 7526 |
|
7527 | 7527 | \pnum
|
7528 | 7528 | \remarks
|
|
7627 | 7627 |
|
7628 | 7628 | \pnum
|
7629 | 7629 | \complexity
|
7630 |
| -Exactly \tcode{last - first} applications |
| 7630 | +At most \tcode{last - first} applications |
7631 | 7631 | of the corresponding predicate and any projection.
|
7632 | 7632 |
|
7633 | 7633 | \pnum
|
|
7878 | 7878 |
|
7879 | 7879 | \pnum
|
7880 | 7880 | \complexity
|
7881 |
| -For nonempty ranges, exactly \tcode{(last - first) - 1} applications |
| 7881 | +For nonempty ranges, at most \tcode{(last - first) - 1} applications |
7882 | 7882 | of the corresponding predicate and
|
7883 | 7883 | no more than twice as many applications of any projection.
|
7884 | 7884 | \end{itemdescr}
|
|
8086 | 8086 |
|
8087 | 8087 | \pnum
|
8088 | 8088 | \complexity
|
8089 |
| -Exactly \tcode{(last - first)/2} swaps. |
| 8089 | +At most \tcode{(last - first)/2} swaps. |
8090 | 8090 | \end{itemdescr}
|
8091 | 8091 |
|
8092 | 8092 | \indexlibraryglobal{reverse_copy}%
|
|
8138 | 8138 |
|
8139 | 8139 | \pnum
|
8140 | 8140 | \complexity
|
8141 |
| -Exactly $N$ assignments. |
| 8141 | +At most $N$ assignments. |
8142 | 8142 | \end{itemdescr}
|
8143 | 8143 |
|
8144 | 8144 | \begin{itemdecl}
|
|
8178 | 8178 |
|
8179 | 8179 | \pnum
|
8180 | 8180 | \complexity
|
8181 |
| -Exactly $N$ assignments. |
| 8181 | +At most $N$ assignments. |
8182 | 8182 | \end{itemdescr}
|
8183 | 8183 |
|
8184 | 8184 | \rSec2[alg.rotate]{Rotate}
|
|
8310 | 8310 |
|
8311 | 8311 | \pnum
|
8312 | 8312 | \complexity
|
8313 |
| -Exactly $N$ assignments. |
| 8313 | +At most $N$ assignments. |
8314 | 8314 | \end{itemdescr}
|
8315 | 8315 |
|
8316 | 8316 | \begin{itemdecl}
|
|
8354 | 8354 |
|
8355 | 8355 | \pnum
|
8356 | 8356 | \complexity
|
8357 |
| -Exactly $N$ assignments. |
| 8357 | +At most $N$ assignments. |
8358 | 8358 | \end{itemdescr}
|
8359 | 8359 |
|
8360 | 8360 | \begin{itemdecl}
|
|
8518 | 8518 |
|
8519 | 8519 | \pnum
|
8520 | 8520 | \complexity
|
8521 |
| -Exactly \tcode{(last - first) - 1} swaps. |
| 8521 | +At most \tcode{(last - first) - 1} swaps. |
8522 | 8522 |
|
8523 | 8523 | \pnum
|
8524 | 8524 | \remarks
|
|
9742 | 9742 | \begin{itemize}
|
9743 | 9743 | \item
|
9744 | 9744 | For the non-parallel algorithm overloads,
|
9745 |
| - exactly $N$ applications of the predicate and projection. |
| 9745 | + at most $N$ applications of the predicate and projection. |
9746 | 9746 | At most $N / 2$ swaps if the type of \tcode{first} meets
|
9747 | 9747 | the \oldconcept{BidirectionalIterator} requirements
|
9748 | 9748 | for the overloads in namespace \tcode{std} or
|
|
9830 | 9830 | For the non-parallel algorithm overloads,
|
9831 | 9831 | at most $N \log_2 N$ swaps,
|
9832 | 9832 | but only \bigoh{N} swaps if there is enough extra memory.
|
9833 |
| - Exactly $N$ applications of the predicate and projection. |
| 9833 | + At most $N$ applications of the predicate and projection. |
9834 | 9834 | \item
|
9835 | 9835 | For the parallel algorithm overloads,
|
9836 | 9836 | \bigoh{N \log N} swaps and \bigoh{N} applications of the predicate.
|
|
11307 | 11307 |
|
11308 | 11308 | \pnum
|
11309 | 11309 | \complexity
|
11310 |
| -Exactly one comparison and two applications of the projection, if any. |
| 11310 | +At most one comparison and two applications of the projection, if any. |
11311 | 11311 |
|
11312 | 11312 | \pnum
|
11313 | 11313 | \remarks
|
|
11355 | 11355 |
|
11356 | 11356 | \pnum
|
11357 | 11357 | \complexity
|
11358 |
| -Exactly \tcode{ranges::distance(r) - 1} comparisons |
| 11358 | +At most \tcode{ranges::distance(r) - 1} comparisons |
11359 | 11359 | and twice as many applications of the projection, if any.
|
11360 | 11360 |
|
11361 | 11361 | \pnum
|
|
11390 | 11390 |
|
11391 | 11391 | \pnum
|
11392 | 11392 | \complexity
|
11393 |
| -Exactly one comparison and two applications of the projection, if any. |
| 11393 | +At most one comparison and two applications of the projection, if any. |
11394 | 11394 |
|
11395 | 11395 | \pnum
|
11396 | 11396 | \remarks
|
|
11438 | 11438 |
|
11439 | 11439 | \pnum
|
11440 | 11440 | \complexity
|
11441 |
| -Exactly \tcode{ranges::distance(r) - 1} comparisons |
| 11441 | +At most \tcode{ranges::distance(r) - 1} comparisons |
11442 | 11442 | and twice as many applications of the projection, if any.
|
11443 | 11443 |
|
11444 | 11444 | \pnum
|
|
11475 | 11475 |
|
11476 | 11476 | \pnum
|
11477 | 11477 | \complexity
|
11478 |
| -Exactly one comparison and two applications of the projection, if any. |
| 11478 | +At most one comparison and two applications of the projection, if any. |
11479 | 11479 |
|
11480 | 11480 | \pnum
|
11481 | 11481 | \remarks
|
|
11590 | 11590 |
|
11591 | 11591 | \pnum
|
11592 | 11592 | \complexity
|
11593 |
| -Exactly $\max(\tcode{last - first - 1}, 0)$ comparisons and |
| 11593 | +At most $\max(\tcode{last - first - 1}, 0)$ comparisons and |
11594 | 11594 | twice as many projections.
|
11595 | 11595 | \end{itemdescr}
|
11596 | 11596 |
|
|
11647 | 11647 |
|
11648 | 11648 | \pnum
|
11649 | 11649 | \complexity
|
11650 |
| -Exactly $\max(\tcode{last - first - 1}, 0)$ comparisons and |
| 11650 | +At most $\max(\tcode{last - first - 1}, 0)$ comparisons and |
11651 | 11651 | twice as many projections.
|
11652 | 11652 | \end{itemdescr}
|
11653 | 11653 |
|
|
12703 | 12703 |
|
12704 | 12704 | \pnum
|
12705 | 12705 | \complexity
|
12706 |
| -Exactly \tcode{(last - first) - 1} applications of the binary operation. |
| 12706 | +At most \tcode{(last - first) - 1} applications of the binary operation. |
12707 | 12707 |
|
12708 | 12708 | \pnum
|
12709 | 12709 | \remarks
|
|
13215 | 13215 |
|
13216 | 13216 | \pnum
|
13217 | 13217 | \complexity
|
13218 |
| -Exactly \tcode{(last - first) - 1} applications of the binary operation. |
| 13218 | +At most \tcode{(last - first) - 1} applications of the binary operation. |
13219 | 13219 |
|
13220 | 13220 | \pnum
|
13221 | 13221 | \remarks
|
|
13250 | 13250 |
|
13251 | 13251 | \pnum
|
13252 | 13252 | \complexity
|
13253 |
| -Exactly \tcode{last - first} increments and assignments. |
| 13253 | +At most \tcode{last - first} increments and assignments. |
13254 | 13254 | \end{itemdescr}
|
13255 | 13255 |
|
13256 | 13256 | \indexlibraryglobal{iota}%
|
|
0 commit comments