|
3965 | 3965 | \end{itemdecl}
|
3966 | 3966 |
|
3967 | 3967 | \begin{itemdescr}
|
| 3968 | +\pnum |
| 3969 | +Let \tcode{last2} be \tcode{first2 + (last1 - first1)} |
| 3970 | +for the overloads with no parameter named \tcode{last2}, |
| 3971 | +and let \tcode{pred} be \tcode{equal_to\{\}} |
| 3972 | +for the overloads with no parameter \tcode{pred}. |
3968 | 3973 |
|
3969 | 3974 | \pnum
|
3970 | 3975 | \mandates
|
|
3974 | 3979 | \expects
|
3975 | 3980 | The comparison function is an equivalence relation.
|
3976 | 3981 |
|
3977 |
| -\pnum |
3978 |
| -\remarks |
3979 |
| -If \tcode{last2} was not given in the argument list, |
3980 |
| -it denotes \tcode{first2 + (last1 - first1)} below. |
3981 |
| - |
3982 | 3982 | \pnum
|
3983 | 3983 | \returns
|
3984 | 3984 | If \tcode{last1 - first1 != last2 - first2}, return \tcode{false}.
|
3985 | 3985 | Otherwise return \tcode{true}
|
3986 | 3986 | if there exists a permutation of the elements
|
3987 |
| -in the range \range{first2}{first2 + (last1 - first1)}, |
| 3987 | +in the range \range{first2}{last2}, |
3988 | 3988 | beginning with \tcode{ForwardIterator2 begin},
|
3989 |
| -such that \tcode{equal(first1, last1, begin)} returns \tcode{true} or |
3990 |
| -\tcode{equal(first1, last1, begin, pred)} returns \tcode{true}; |
| 3989 | +such that \tcode{equal(first1, last1, begin, pred)} returns \tcode{true}; |
3991 | 3990 | otherwise, returns \tcode{false}.
|
3992 | 3991 |
|
3993 | 3992 | \pnum
|
|
3998 | 3997 | \tcode{last1 - first1 != last2 - first2}.
|
3999 | 3998 | Otherwise, exactly \tcode{last1 - first1} applications
|
4000 | 3999 | of the corresponding predicate
|
4001 |
| -if \tcode{equal(\brk{}first1, last1, first2, last2)} would return \tcode{true} |
4002 |
| -if \tcode{pred} was not given in the argument list or |
4003 |
| -\tcode{equal(first1, last1, first2, last2, pred)} would return \tcode{true} |
4004 |
| -if \tcode{pred} was given in the argument list; |
| 4000 | +if \tcode{equal(first1, last1, first2, last2, pred)} would return \tcode{true}; |
4005 | 4001 | otherwise, at worst \bigoh{N^2}, where $N$ has the value \tcode{last1 - first1}.
|
4006 | 4002 | \end{itemdescr}
|
4007 | 4003 |
|
|
0 commit comments