operator==,!=,<,<=,>,>=(std::sub_match) (3) - Linux Manuals
operator==,!=,<,<=,>,>=(std::sub_match): operator==,!=,<,<=,>,>=(std::sub_match)
NAME
operator==,!=,<,<=,>,>=(std::sub_match) - operator==,!=,<,<=,>,>=(std::sub_match)
Synopsis
Defined in header <regex>
Direct comparison
template< class BidirIt >
bool operator==( const sub_match<BidirIt>& lhs,                                 (1)  (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator!=( const sub_match<BidirIt>& lhs,                                 (2)  (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator<( const sub_match<BidirIt>& lhs,                                  (3)  (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator<=( const sub_match<BidirIt>& lhs,                                 (4)  (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator>( const sub_match<BidirIt>& lhs,                                  (5)  (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator>=( const sub_match<BidirIt>& lhs,                                 (6)  (since C++11)
const sub_match<BidirIt>& rhs );
std::basic_string and std::sub_match
template< class BidirIt, class Traits, class Alloc >
bool operator==( const std::basic_string<
typename std::iterator_traits<BidirIt>::value_type,                             (7)  (since C++11)
Traits,Alloc>& lhs,
const sub_match<BidirIt>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator!=( const std::basic_string<
typename std::iterator_traits<BidirIt>::value_type,                             (8)  (since C++11)
Traits,Alloc>& lhs,
const sub_match<BidirIt>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator<( const std::basic_string<
typename std::iterator_traits<BidirIt>::value_type,                             (9)  (since C++11)
Traits,Alloc>& lhs,
const sub_match<BidirIt>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator<=( const std::basic_string<
typename std::iterator_traits<BidirIt>::value_type,                             (10) (since C++11)
Traits,Alloc>& lhs,
const sub_match<BidirIt>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator>( const std::basic_string<
typename std::iterator_traits<BidirIt>::value_type,                             (11) (since C++11)
Traits,Alloc>& lhs,
const sub_match<BidirIt>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator>=( const std::basic_string<
typename std::iterator_traits<BidirIt>::value_type,                             (12) (since C++11)
Traits,Alloc>& lhs,
const sub_match<BidirIt>& rhs );
std::sub_match and std::basic_string
template< class BidirIt, class Traits, class Alloc >
bool operator==( const sub_match<BidirIt>& lhs,
const std::basic_string<                                                        (13) (since C++11)
typename std::iterator_traits<BidirIt>::value_type,
Traits,Alloc>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator!=( const sub_match<BidirIt>& lhs,
const std::basic_string<                                                        (14) (since C++11)
typename std::iterator_traits<BidirIt>::value_type,
Traits,Alloc>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator<( const sub_match<BidirIt>& lhs,
const std::basic_string<                                                        (15) (since C++11)
typename std::iterator_traits<BidirIt>::value_type,
Traits,Alloc>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator<=( const sub_match<BidirIt>& lhs,
const std::basic_string<                                                        (16) (since C++11)
typename std::iterator_traits<BidirIt>::value_type,
Traits,Alloc>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator>( const sub_match<BidirIt>& lhs,
const std::basic_string<                                                        (17) (since C++11)
typename std::iterator_traits<BidirIt>::value_type,
Traits,Alloc>& rhs );
template< class BidirIt, class Traits, class Alloc >
bool operator>=( const sub_match<BidirIt>& lhs,
const std::basic_string<                                                        (18) (since C++11)
typename std::iterator_traits<BidirIt>::value_type,
Traits,Alloc>& rhs );
std::iterator_traits<BidirIt>::value_type* and std::sub_match
template< class BidirIt >
bool operator==( const typename std::iterator_traits<BidirIt>::value_type* rhs, (19) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator!=( const typename std::iterator_traits<BidirIt>::value_type* rhs, (20) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator<( const typename std::iterator_traits<BidirIt>::value_type* rhs,  (21) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator<=( const typename std::iterator_traits<BidirIt>::value_type* rhs, (22) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator>( const typename std::iterator_traits<BidirIt>::value_type* rhs,  (23) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator>=( const typename std::iterator_traits<BidirIt>::value_type* rhs, (24) (since C++11)
const sub_match<BidirIt>& rhs );
std::sub_match and std::iterator_traits<BidirIt>::value_type*
template< class BidirIt >
bool operator==( const sub_match<BidirIt>& lhs,                                 (25) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type* rhs );
template< class BidirIt >
bool operator!=( const sub_match<BidirIt>& lhs,                                 (26) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type* rhs );
template< class BidirIt >
bool operator<( const sub_match<BidirIt>& lhs,                                  (27) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type* rhs );
template< class BidirIt >
bool operator<=( const sub_match<BidirIt>& lhs,                                 (28) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type* rhs );
template< class BidirIt >
bool operator>( const sub_match<BidirIt>& lhs,                                  (29) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type* rhs );
template< class BidirIt >
bool operator>=( const sub_match<BidirIt>& lhs,                                 (30) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type* rhs );
std::iterator_traits<BidirIt>::value_type and std::sub_match
template< class BidirIt >
bool operator==( const typename std::iterator_traits<BidirIt>::value_type& rhs, (31) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator!=( const typename std::iterator_traits<BidirIt>::value_type& rhs, (32) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator<( const typename std::iterator_traits<BidirIt>::value_type& rhs,  (33) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator<=( const typename std::iterator_traits<BidirIt>::value_type& rhs, (34) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator>( const typename std::iterator_traits<BidirIt>::value_type& rhs,  (35) (since C++11)
const sub_match<BidirIt>& rhs );
template< class BidirIt >
bool operator>=( const typename std::iterator_traits<BidirIt>::value_type& rhs, (36) (since C++11)
const sub_match<BidirIt>& rhs );
std::sub_match and std::iterator_traits<BidirIt>::value_type
template< class BidirIt >
bool operator==( const sub_match<BidirIt>& lhs,                                 (37) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type& rhs );
template< class BidirIt >
bool operator!=( const sub_match<BidirIt>& lhs,                                 (38) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type& rhs );
template< class BidirIt >
bool operator<( const sub_match<BidirIt>& lhs,                                  (39) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type& rhs );
template< class BidirIt >
bool operator<=( const sub_match<BidirIt>& lhs,                                 (40) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type& rhs );
template< class BidirIt >
bool operator>( const sub_match<BidirIt>& lhs,                                  (41) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type& rhs );
template< class BidirIt >
bool operator>=( const sub_match<BidirIt>& lhs,                                 (42) (since C++11)
const typename std::iterator_traits<BidirIt>::value_type& rhs );
Compares a sub_match to another sub_match, a string, a null-terminated character sequence or a character.
1-6) Compares two sub_match directly by comparing their underlying character sequences. Implemented as if by lhs.compare(rhs)
7-18) Compares a sub_match with a std::basic_string. Implemented as if by sm.compare(typename sub_match<BidirIt>::string_type(st.data(), st.size()), where sm is the sub_match argument and st is the basic_string argument.
19-30) Compares a sub_match with a null-terminated string. Implemented as if by sm.compare(s), where sm is the sub_match and s is the pointer to a null-terminated character string.
31-42) Compares a sub_match with a character. Implemented as if by sm.compare(typename sub_match<BidirIt>::string_type(1, ch)), where sm is a sub_match and ch is a character.
Parameters
lhs, rhs - a sub_match, basic_string, pointer to a null-terminated string or a character to compare
Return value
true if the corresponding comparison holds as defined by std::sub_match::compare(), false otherwise.
Example
 This section is incomplete
 Reason: no example
See also
 
 
 
 
 
 
compare (public member function)