Return true if a is equal to C-string b, and false otherwise.
Declared in <bslstl_stringref.h>
template<class CHAR_TYPE>
static
bool
compareEqual(
StringRefImp<CHAR_TYPE> const& a,
CHAR_TYPE const* b);
Return true if the specified a is equal to the specified null-terminated C-string b and false otherwise. Note that this function is more efficient than compare for non-lexicographical equality comparisons.
true if a equals b, and false otherwise
| Name | Description |
|---|---|
| a | string reference to compare |
| b | null-terminated C-string to compare against |