std::regex_iterator<BidirIt,CharT,Traits>::operator==,operator!=
From cppreference.com
< cpp | regex | regex iterator
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
Regular expressions library (C++11)
Formatting library (C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++26)
Regular expressions library
Classes
(C++11)
(C++11)
(C++11)
Algorithms
(C++11)
(C++11)
(C++11)
Iterators
(C++11)
(C++11)
Exceptions
(C++11)
Traits
(C++11)
Constants
(C++11)
(C++11)
(C++11)
Regex Grammar
(C++11)
std::regex_iterator
Member functions
Comparisons
regex_iterator::operator==regex_iterator::operator!=
(until C++20)
Observers
Modifiers
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 two regex_iterator
s.
The !=
operator is synthesized from operator==
.
[edit] Parameters
rhs
-
a
regex_iterator
to compare to
[edit] 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).
[edit] Example
This section is incomplete
Reason: no example
Reason: no example