Case‐insensitive hash functor for string views.

Synopsis

Declared in <bdlb_caselessstringviewhash.h>

struct CaselessStringViewHash;

Description

This struct defines a hash operation for string views enabling bsl::string`s or `bsl::string_view`s to be used 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

argument_type

Type of the argument to the function‐call operator.

is_transparent

Type alias indicating this is a transparent hash functor.

result_type

Type of the function‐call operator's result (a hash value).

Member Functions

Name

Description

operator()

Return a case‐insensitive hash of the specified argument.

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

Declare that this type is trivially copyable.

Created with MrDocs