std::regex_...,operator!=(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 std::regex_...,operator!=(3) 🌸

okay bestie, we're in the C++ Standard Libary and this page is all about the comparison besties for std::regex_iterator β€” specifically std::regex_iterator::operator== and operator!=. yes, the header literally says std::regex_...,operator!=(3), and we are copying that energy. πŸ’…


✨ NAME ✨

  • std::regex_iterator::operator==,operator!= β€” the equality and inequality comparison operators for std::regex_iterator, bestie. 🫢

πŸ’– Synopsis πŸ’–

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)

These compare two regex_iterators, no cap.

The != operator is synthesized from operator==. (since C++20) ✨

πŸŽ€ Parameters πŸŽ€

  • rhs β€” a regex_iterator to compare to. πŸ’–

πŸ‘‘ Return value πŸ‘‘

For the sake of exposition, assume that regex_iterator contains the following members:

  • BidirIt begin;
  • BidirIt end;
  • const regex_type *pregex;
  • std::regex_constants::match_flag_type flags;
  • std::match_results<BidirIt> match;
  1. Returns true if *this and rhs 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).

πŸ¦‹ Example πŸ¦‹

This section is incomplete Reason: no example

πŸ’€ Category πŸ’€

  • Todo no example

cute sign-off: source/version is http://cppreference.com, date is 2024.06.10, and this page is std::regex_...,operator!=(3). stay slay, bestie πŸ’œ

πŸ“¦ where this page comes from