std::sub_match<BidirIt>::compare
Min standard notice:
- Compares two sub_matches directly by comparing their underlying character sequences. Equivalent to str().compare(m.str()).
# Declarations
int compare( const sub_match& m ) const;
(since C++11)
int compare( const string_type& s ) const;
(since C++11)
int compare( const value_type* c ) const;
(since C++11)
# Parameters
m: a reference to another sub_matchs: a reference to a string to compare toc: a pointer to a null-terminated character sequence of the underlying value_type to compare to
# Return value
A value less than zero if this sub_match is less than the other character sequence, zero if the both underlying character sequences are equal, greater than zero if this sub_match is greater than the other character sequence.
# Notes
This function is infrequently used directly by application code. Instead, one of the non-member comparison operators is used.
# Example
This section is incompleteReason: no example