This meta‐function selects the appropriate implementation for comparing the parameterized TYPE. This generic template uses the std::equal_to functor.

Synopsis

Declared in <bslstp_hash.h>

template<class HASH_KEY>
struct HashSelector;

Type Aliases

Name

Description

Type

Hash functor type selected for HASH_KEY.

Specializations

Name

Description

HashSelector<char>

This meta‐function is specialized for char, and uses the Hash<char> functor to hash values of that type.

HashSelector<int>

This meta‐function is specialized for int, and uses the Hash<int> functor to hash values of that type.

HashSelector<long>

This meta‐function is specialized for long, and uses the Hash<long> functor to hash values of that type.

HashSelector<long long>

This meta‐function is specialized for long long, and uses the Hash<long long> functor to hash values of that type.

HashSelector<short>

This meta‐function is specialized for short, and uses the Hash<short> functor to hash values of that type.

HashSelector<signed char>

This meta‐function is specialized for signed char, and uses the Hash<signed char> functor to hash values of that type.

HashSelector<unsigned char>

This meta‐function is specialized for unsigned char, and uses the Hash<unsigned char> functor to hash values of that type.

HashSelector<unsigned int>

This meta‐function is specialized for unsigned int, and uses the Hash<unsigned int> functor to hash values of that type.

HashSelector<unsigned long>

This meta‐function is specialized for unsigned long, and uses the Hash<unsigned long> functor to hash values of that type.

HashSelector<unsigned long long>

This meta‐function is specialized for unsigned long long, and uses the Hash<unsigned long long> functor to hash values of that type.

HashSelector<unsigned short>

This meta‐function is specialized for unsigned short, and uses the Hash<unsigned short> functor to hash values of that type.

HashSelector<char const*>

This meta‐function is specialized for const char *, and uses the HashCString functor to hash the string values.

HashSelector<HASH_KEY const>

Partial specialization that hashes const types as their non‐`const` type.

Created with MrDocs