Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::regex_token_iterator<BidirIt,CharT,Traits>::operator==, operator!=

      From cppreference.com
      <cpp‎ |regex‎ |regex token iterator
       
       
       
      Regular expressions library
      Classes
      (C++11)
      Algorithms
      Iterators
      Exceptions
      Traits
      Constants
      (C++11)
      Regex Grammar
       
       
      bool operator==(const regex_token_iterator& other)const;
      (1)(since C++11)
      bool operator!=(const regex_token_iterator& other)const;
      (2)(since C++11)
      (until C++20)

      Checks whether*this andother are equivalent.

      Two regex token iterators are equal if:

      a) They are both end-of-sequence iterators.
      b) They are both suffix iterators and the suffixes are equal.
      c) Neither of them is end-of-sequence or suffix iterator and:
      • position== other.position
      • N== other.N
      • subs== other.subs


      1) Checks whether*this isequal toother.
      2) Checks whether*this isnot equal toother.

      The!= operator issynthesized fromoperator==.

      (since C++20)
      This section is incomplete
      Reason: Explain better. For example,subs is an exposition-only vector of matched sub-expressions.

      [edit]Parameters

      other - another regex token iterator to compare to

      [edit]Return value

      1)true if*this isequal toother,false otherwise.
      2)true if*this isnot equal toother,false otherwise.
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/regex/regex_token_iterator/operator_cmp&oldid=161045"

      [8]ページ先頭

      ©2009-2025 Movatter.jp