std::regex_token_iterator<BidirIt,CharT,Traits>::operator==, operator!=
提供: cppreference.com
< cpp | regex | regex token iterator
bool operator==( const regex_token_iterator& other ) const; |
(C++11以上) | |
bool operator!=( const regex_token_iterator& other ) const; |
(C++11以上) | |
*this と other
が同等かどうか調べます。
2つの regex_token_iterator は以下の場合に同等です。
a) どちらも終端イテレータである。
b) どちらも接尾辞イテレータであり、その接尾辞が等しい。
c) どちらも終端イテレータでなく、接尾辞イテレータでもなく、以下が成り立つ。
- position == other.position
- N == other.N
- subs == other.subs
1) *this が
other
と等しいかどうか調べます。2) *this が
other
と等しくないかどうか調べます。[編集] 引数
other | - | 比較する別の regex_token_iterator |
[編集] 戻り値
1) *this が
other
と等しい場合は true、そうでなければ false。2) *this が
other
と等しくない場合は true、そうでなければ false。