BloombergLP::bslstl::StringRefImp_CompareUtil::compareEqual

compareEqual overloads

Synopses

Declared in <bslstl_stringref.h>

Return true if the specified a is equal to b and false otherwise. Note that this function is more efficient than compare for non-lexicographical equality comparisons.

template<class CHAR_TYPE>
static
bool
compareEqual(
    StringRefImp<CHAR_TYPE> const& a,
    StringRefImp<CHAR_TYPE> const& b);
» more...

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.

template<class CHAR_TYPE>
static
bool
compareEqual(
    StringRefImp<CHAR_TYPE> const& a,
    CHAR_TYPE const* b);
» more...