std::regex_...,operator!=(3)
πΈ 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 forstd::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β aregex_iteratorto 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;
- Returns
trueif*thisandrhsare both end-of-sequence iterators, or if all of the following conditions are true:begin == rhs.beginend == rhs.endpregex == rhs.pregexflags == rhs.flagsmatch[0] == rhs.match[0]
- 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms