operator==,!=(std::match_results) (3) - Linux Manuals
operator==,!=(std::match_results): operator==,!=(std::match_results)
Command to display operator==,!=(std::match_results)
manual in Linux: $ man 3 operator==,!=(std::match_results)
NAME
operator==,!=(std::match_results) - operator==,!=(std::match_results)
Synopsis
Defined in header <regex>
template< class BidirIt, class Alloc >
bool operator==( match_results<BidirIt,Alloc>& lhs, (1) (since C++11)
match_results<BidirIt,Alloc>& rhs );
template< class BidirIt, class Alloc >
bool operator!=( match_results<BidirIt,Alloc>& lhs, (2) (since C++11)
match_results<BidirIt,Alloc>& rhs );
Compares two match_results objects.
Two match_results are equal if the following conditions are met:
* neither of the objects is ready, or
* both match results are ready and the following conditions are met:
* lhs.empty() and rhs.empty(), or
* !lhs.empty() and !rhs.empty() and the following conditions are met:
* lhs.prefix() == rhs.prefix()
* lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin())
* lhs.suffix() == rhs.suffix()
1) Checks if lhs and rhs are equal.
2) Checks if lhs and rhs are not equal.
Parameters
lhs, rhs - match results to compare
Type requirements
-
BidirIt must meet the requirements of LegacyBidirectionalIterator.
-
Alloc must meet the requirements of Allocator.
Return value
1) true if lhs and rhs are equal, false otherwise.
2) true if lhs and rhs are not equal, false otherwise.
Exceptions
(none)
Example
This section is incomplete
Reason: no example
Pages related to operator==,!=(std::match_results)
- operator==,!=(std::mersenne_twister_engine) (3) - operator==,!=(std::mersenne_twister_engine)
- operator==,!=(std::allocator) (3) - operator==,!=(std::allocator)
- operator==,!=(std::bernoulli_distribution) (3) - operator==,!=(std::bernoulli_distribution)
- operator==,!=(std::binomial_distribution) (3) - operator==,!=(std::binomial_distribution)
- operator==,!=(std::bitset) (3) - operator==,!=(std::bitset)
- operator==,!=(std::cauchy_distribution) (3) - operator==,!=(std::cauchy_distribution)
- operator==,!=(std::chi_squared_distribution) (3) - operator==,!=(std::chi_squared_distribution)
- operator==,!=(std::complex) (3) - operator==,!=(std::complex)
- operator==,!=(std::discard_block_engine) (3) - operator==,!=(std::discard_block_engine)
- operator==,!=(std::discrete_distribution) (3) - operator==,!=(std::discrete_distribution)
- operator==,!=(std::experimental::function) (3) - operator==,!=(std::experimental::function)
- operator==,!=(std::experimental::pmr::polymorphic_allocator) (3) - operator==,!=(std::experimental::pmr::polymorphic_allocator)
- operator==,!=(std::exponential_distribution) (3) - operator==,!=(std::exponential_distribution)
- operator==,!=(std::extreme_value_distribution) (3) - operator==,!=(std::extreme_value_distribution)
- operator==,!=(std::fisher_f_distribution) (3) - operator==,!=(std::fisher_f_distribution)
- operator==,!=(std::function) (3) - operator==,!=(std::function)
- operator==,!=(std::gamma_distribution) (3) - operator==,!=(std::gamma_distribution)
- operator==,!=(std::geometric_distribution) (3) - operator==,!=(std::geometric_distribution)
- operator==,!=(std::independent_bits_engine) (3) - operator==,!=(std::independent_bits_engine)
- operator==,!=(std::istream_iterator) (3) - operator==,!=(std::istream_iterator)
- operator==,!=(std::istreambuf_iterator) (3) - operator==,!=(std::istreambuf_iterator)
- operator==,!=(std::linear_congruential_engine) (3) - operator==,!=(std::linear_congruential_engine)
- operator==,!=(std::lognormal_distribution) (3) - operator==,!=(std::lognormal_distribution)