|
4257 | 4257 | \pnum
|
4258 | 4258 | \returns \tcode{true} if
|
4259 | 4259 | \range{first}{last} is empty or if
|
4260 |
| -\range{first}{last} is partitioned by \tcode{pred}, i.e. if all elements that satisfy \tcode{pred} appear before those that do not. |
| 4260 | +the elements \tcode{e} of |
| 4261 | +\range{first}{last} are partitioned with respect to the expression |
| 4262 | +\tcode{pred(e)}. |
4261 | 4263 |
|
4262 | 4264 | \pnum
|
4263 | 4265 | \complexity Linear. At most \tcode{last - first} applications of \tcode{pred}.
|
|
4304 | 4306 | \begin{itemdecl}
|
4305 | 4307 | template<class BidirectionalIterator, class Predicate>
|
4306 | 4308 | BidirectionalIterator
|
4307 |
| - stable_partition(BidirectionalIterator first, BidirectionalIterator last, |
4308 |
| - Predicate pred); |
| 4309 | + stable_partition(BidirectionalIterator first, BidirectionalIterator last, Predicate pred); |
4309 | 4310 | template<class ExecutionPolicy, class BidirectionalIterator, class Predicate>
|
4310 | 4311 | BidirectionalIterator
|
4311 | 4312 | stable_partition(ExecutionPolicy&& exec,
|
4312 |
| - BidirectionalIterator first, BidirectionalIterator last, |
4313 |
| - Predicate pred); |
| 4313 | + BidirectionalIterator first, BidirectionalIterator last, Predicate pred); |
4314 | 4314 | \end{itemdecl}
|
4315 | 4315 |
|
4316 | 4316 | \begin{itemdescr}
|
|
4364 | 4364 | class OutputIterator2, class Predicate>
|
4365 | 4365 | constexpr pair<OutputIterator1, OutputIterator2>
|
4366 | 4366 | partition_copy(InputIterator first, InputIterator last,
|
4367 |
| - OutputIterator1 out_true, OutputIterator2 out_false, |
4368 |
| - Predicate pred); |
| 4367 | + OutputIterator1 out_true, OutputIterator2 out_false, Predicate pred); |
4369 | 4368 | template<class ExecutionPolicy, class ForwardIterator, class ForwardIterator1,
|
4370 | 4369 | class ForwardIterator2, class Predicate>
|
4371 | 4370 | pair<ForwardIterator1, ForwardIterator2>
|
4372 | 4371 | partition_copy(ExecutionPolicy&& exec,
|
4373 | 4372 | ForwardIterator first, ForwardIterator last,
|
4374 |
| - ForwardIterator1 out_true, ForwardIterator2 out_false, |
4375 |
| - Predicate pred); |
| 4373 | + ForwardIterator1 out_true, ForwardIterator2 out_false, Predicate pred); |
4376 | 4374 | \end{itemdecl}
|
4377 | 4375 |
|
4378 |
| - |
4379 | 4376 | \begin{itemdescr}
|
4380 | 4377 | \pnum
|
4381 | 4378 | \requires
|
|
4415 | 4412 | \begin{itemdecl}
|
4416 | 4413 | template<class ForwardIterator, class Predicate>
|
4417 | 4414 | constexpr ForwardIterator
|
4418 |
| - partition_point(ForwardIterator first, ForwardIterator last, |
4419 |
| - Predicate pred); |
| 4415 | + partition_point(ForwardIterator first, ForwardIterator last, Predicate pred); |
4420 | 4416 | \end{itemdecl}
|
4421 | 4417 |
|
4422 |
| - |
4423 | 4418 | \begin{itemdescr}
|
4424 | 4419 | \pnum
|
4425 |
| -\requires \tcode{ForwardIterator}'s value type shall be convertible to \tcode{Predicate}'s argument type. \range{first}{last} shall be partitioned by \tcode{pred}, i.e. all elements that satisfy \tcode{pred} shall appear before those that do not. |
| 4420 | +\requires |
| 4421 | +\tcode{ForwardIterator}'s value type shall be convertible to |
| 4422 | +\tcode{Predicate}'s argument type. The elements \tcode{e} of \range{first}{last} |
| 4423 | +shall be partitioned with respect to the expression \tcode{pred(e)}. |
4426 | 4424 |
|
4427 | 4425 | \pnum
|
4428 | 4426 | \returns An iterator \tcode{mid} such that \tcode{all_of(first, mid, pred)} and \tcode{none_of(mid, last, pred)} are both \tcode{true}.
|
|
0 commit comments