bsl::hash<basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>>::operator()

Function call operators

Synopses

Declared in <bslh_hash.h>

Compute and return the hash value of the specified string.

std::size_t
operator()(basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR> const& input) const;
» more...

Compute and return the hash value of a null-terminated string.

std::size_t
operator()(CHAR_TYPE const* input) const;
» more...

Return a hash value for the specified key.

template<class TYPE>
bslh::Hash<bslh::DefaultHashAlgorithm>::result_type
operator()(TYPE const& key) const;
» more...

Return Value

  • hash value of the input
  • hash of key, cast to size_t

Parameters

NameDescription
inputstring to hash
keyobject to hash