std::regex_token_iterator<BidirIt,CharT,Traits>:: operator==, operator!=
From cppreference.net
<
cpp
|
regex
|
regex token iterator
|
bool
operator
==
(
const
regex_token_iterator
&
other
)
const
;
|
(1) | (自 C++11 起) |
|
bool
operator
!
=
(
const
regex_token_iterator
&
other
)
const
;
|
(2) |
(自 C++11 起)
(直至 C++20) |
检查 * this 与 other 是否等价。
两个正则表达式词法迭代器在以下情况下相等:
a)
它们都是序列末尾迭代器。
b)
它们都是后缀迭代器且后缀相等。
c)
两者均非序列终止或后缀迭代器且:
-
-
- position == other. position
- N == other. N
- subs == other. subs
-
1)
检查
*
this
是否
等于
other
。
2)
检查
*
this
是否
不等于
other
。
|
|
(C++20 起) |
|
此章节内容不完整
原因:需要更清晰的解释。例如,
subs
是一个仅用于说明的匹配子表达式向量。
|
参数
| 其他 | - | 用于比较的另一个正则表达式词法迭代器 |
返回值
1)
true
若
*
this
等于
other
,否则为
false
。
2)
若
*
this
不等于
other
则返回
true
,否则返回
false
。