Specialize bsl::hash for strings, including an overload for pointers to allow character arrays to be hashed without converting them first.

Synopsis

Declared in <bslstl_string.h>

template<
    class CHAR_TYPE,
    class CHAR_TRAITS,
    class ALLOCATOR>
struct hash<basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>>
    : BloombergLP::bslh::Hash<>

Base Classes

Name

Description

BloombergLP::bslh::Hash<>

This struct wraps the (template parameter) type HASH_ALGORITHM in an interface that satisfies the hash requirements of the C++11 standard.

Type Aliases

Name

Description

HashAlgorithm

Make the HASH_ALGORITHM template parameter available to clients.

result_type

The type of the hash value that will be returned by the function‐call operator.

Member Functions

Name

Description

operator()

Function call operators

Created with MrDocs