[#bsl-operator_eq-02e] = xref:bsl.adoc[bsl]::operator== :relfileprefix: ../ :mrdocs: Return `true` if the specified `lhs` string has the same value as the specified `rhs` string, and `false` otherwise. Two strings have the same value if they have the same length, and the characters at each respective position have the same value according to `CHAR_TRAITS::eq`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_TYPE, class CHAR_TRAITS, class ALLOC> bool operator==( xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOC>] const& lhs, CHAR_TYPE const* rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#