This struct defines a comparison functor on null‐terminated character strings, enabling them for use as keys in the standard unordered associative containers such as bsl::unordered_map and bsl::unordered_set. Note that this class is an empty POD type.

Synopsis

Declared in <bdlb_cstringequalto.h>

struct CStringEqualTo;

Type Aliases

Name

Description

first_argument_type

Type of the first argument to the function‐call operator.

result_type

Type of the function‐call operator's result.

second_argument_type

Type of the second argument to the function‐call operator.

Member Functions

Name

Description

operator()

Return true if the specified lhs string has the same (case sensitive) value as the specified rhs string, and false otherwise. The behavior is undefined unless both lhs and rhs point to null‐terminated strings.

operator BloombergLP::bslmf::NestedTraitDeclaration<CStringEqualTo, is_trivially_default_constructible>

Declare that this type is trivially copyable.

Created with MrDocs