bsl::StringComparator::operator()

Return whether the specified null-terminated strings compare equal.

Synopsis

Declared in <bslstp_exfunctional.h>

bool
operator()(
    char const* a,
    char const* b) const;

Description

Return true if the specified strings a and b have the same value, and return false otherwise. Two strings have the same value if the result of std::strcmp returns 0.

Return Value

true if the strings compare equal, and false otherwise

Parameters

NameDescription
afirst null-terminated string to compare
bsecond null-terminated string to compare