Serves as a hash function for a particular type.
Reimplemented in xtd::any_object, xtd::basic_string< char_t, traits_t, allocator_t >, xtd::hash_code, and xtd::text::basic_string_builder< char_t, traits_t, allocator_t >.