std::regex_iterator::operator==,operator!=

bool operator==(const regex_iterator& rhs) const;
(1) (C++11 起)
bool operator!=(const regex_iterator& rhs) const;
(2) (C++11 起)

比较二个 regex_iterator

为说明起见,假设 regex_iterator 含下列成员:

1)*thisrhs 都是序列尾迭代器,或若下列条件全为 true 则返回 true
2) 返回 !(*this == rhs)

参数

rhs - 要比较的 regex_iterator

示例

版本历史

  • (当前 | 先前) 2017年9月29日 (五) 08:30Fruderica讨论 | 贡献. . (1,062字节) (+1,062). . (以“{{cpp/regex/regex_iterator/title | operator{{==}},operator!{{=}} }} {{cpp/regex/regex_iterator/navbar}} {{dcl begin}} {{dcl | num=1 | since=c++11 | 1= bool operator...”为内容创建页面)