operator==

Test for lexicographical equality.

  template <class charT, class traits, class Allocator>

  bool operator==

  (const basic_string<charT,traits,Allocator>& lhs,

  const basic_string<charT,traits,Allocator>& rhs);

  template<class charT, class traits, class Allocator>

  bool operator==

  (const charT* lhs,const basic_string

  <charT,traits,Allocator>& rhs);

  template<class charT, class traits, class Allocator>

  bool operator==

  (const basic_string<charT,traits,Allocator>& lhs,

  const charT* rhs);  
Return

True if the strings match otherwise false.