Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      Compares tworegex_iterators.

      The!= operator issynthesized fromoperator==.

      (since C++20)

      [edit]Parameters

      rhs - aregex_iterator to compare to

      [edit]Return value

      For the sake of exposition, assume thatregex_iterator contains the following members:

      1) Returnstrue if*this andrhs are both end-of-sequence iterators, or if all of the following conditions are true:
      • begin== rhs.begin
      • end== rhs.end
      • pregex== rhs.pregex
      • flags== rhs.flags
      • match[0]== rhs.match[0]
      2) Returns!(*this== rhs).

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/regex/regex_iterator/operator_cmp&oldid=160644"

      [8]ページ先頭

      ©2009-2025 Movatter.jp