This struct defines a transparent hash functor for string‐like types.

Synopsis

Declared in <bdlb_transparentstringhash.h>

struct TransparentStringHash;

Description

This struct defines a hash operation for different string types, enabling them for use for heterogeneous lookup in the standard associative containers such as bsl::unordered_map. Note that this class is an empty POD type.

Type Aliases

Name

Description

is_transparent

Type alias indicating this is a transparent hash functor.

Member Functions

Name

Description

operator()

Return a hash code generated from the contents of the specified str.

Created with MrDocs