62.4k views
5 votes
Class string provides overaloaded ==, !=, <, >, <=, and >= operators for string comparisons

True

False

User Natjo
by
5.8k points

1 Answer

0 votes

Answer:

True

Step-by-step explanation:

Class string provides overloaded ==, !=, <, >, <=, and >= operators for string comparisons. Examples of method signatures of these operators are as follows:

bool operator== (const char* l, const string& r);

bool operator!= (const char* l, const string& r);

bool operator< (const char* l, const string& r);

bool operator> (const char* l, const string& r);

bool operator<= (const char* l, const string& r);

bool operator>= (const char* l, const string& r);

User Abbey Graebner
by
6.1k points