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

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

Synopsis

Declared in <bslstl_string.h>

std::size_t
operator()(CHAR_TYPE const* input) const;

Description

Compute and return the hash value of the contents of the specified null-terminated input. This value will be the same as the hash value of a basic_string constructed from input.

Return Value

hash value of the input

Parameters

NameDescription
inputnull-terminated character string to hash