Return a hash code generated from the contents of the specified str.
Synopses
Declared in <bdlb_transparentstringhash.h>
Return a hash code generated from the contents of the specified str.
template<class CHAR>
std::size_t
operator()(CHAR const* str) const;
Return a hash code generated from the contents of the specified str.
template<
class CHAR,
class TRAITS>
std::size_t
operator()(std::basic_string_view<CHAR, TRAITS> const& str) const;
Return a hash code generated from the contents of the specified str.
template<
class CHAR,
class TRAITS,
class ALLOCATOR>
std::size_t
operator()(bsl::basic_string<CHAR, TRAITS, ALLOCATOR> const& str) const;
Return a hash code generated from the contents of the specified str.
template<
class CHAR,
class TRAITS,
class ALLOCATOR>
std::size_t
operator()(std::basic_string<CHAR, TRAITS, ALLOCATOR> const& str) const;
Return Value
hash code generated from the contents of str
Parameters
Name |
Description |
str |
null‐terminated character string to hash |
Created with MrDocs