Equality comparison functor for null‐terminated character strings.

Synopsis

Declared in <bdlb_cstringequalto.h>

struct CStringEqualTo;

Description

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.

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.

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

Declare that this type is trivially copyable.

Created with MrDocs