std::experimental::ranges:: mismatch
|
template
<
InputIterator I1, Sentinel
<
I1
>
S1, InputIterator I2, Sentinel
<
I2
>
S2,
class
Proj1
=
ranges::
identity
,
class
Proj2
=
ranges::
identity
,
|
(1) | (ranges TS) |
|
template
<
InputRange R1, InputRange R2,
class
Proj1
=
ranges::
identity
,
class
Proj2
=
ranges::
identity
,
|
(2) | (ranges TS) |
|
template
<
InputIterator I1, Sentinel
<
I1
>
S1,
class
I2,
class
Pred
=
ranges::
equal_to
<>
,
|
(3) |
(ranges TS)
(已弃用) |
|
template
<
InputRange R1,
class
I2,
class
Pred
=
ranges::
equal_to
<>
,
class
Proj1
=
ranges::
identity
,
class
Proj2
=
ranges::
identity
>
|
[
first1
,
last1
)
定义,另一个范围由
[
first2
,
last2
)
定义。
元素使用 pred 对两个范围的投影元素进行比较,操作方式类似于 ranges:: invoke ( pred, ranges:: invoke ( proj1, * i ) , ranges:: invoke ( proj2, * j ) ) 。
尽管存在上述声明,算法声明的实际模板参数数量和顺序是未指定的。因此,若在调用算法时使用了显式模板参数,该程序很可能不具备可移植性。
内容参数
返回值
一个包含指向前两个不相等元素的迭代器的
当比较到达 last1 或 last2 (以先发生者为准)时若未发现不匹配项,则该迭代器对包含结束迭代器及来自另一范围的对应迭代器。 复杂度最多应用谓词和每个投影 last1 - first1 次。 可能实现
示例
另见
|