// functional_hash.h header -*- C++ -*-
-// Copyright (C) 2007-2018 Free Software Foundation, Inc.
+// Copyright (C) 2007-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
/// Explicit specialization for wchar_t.
_Cxx_hashtable_define_trivial_hash(wchar_t)
+#ifdef _GLIBCXX_USE_CHAR8_T
+ /// Explicit specialization for char8_t.
+ _Cxx_hashtable_define_trivial_hash(char8_t)
+#endif
+
/// Explicit specialization for char16_t.
_Cxx_hashtable_define_trivial_hash(char16_t)
operator()(long double __val) const noexcept;
};
+#if __cplusplus >= 201703L
+ template<>
+ struct hash<nullptr_t> : public __hash_base<size_t, nullptr_t>
+ {
+ size_t
+ operator()(nullptr_t) const noexcept
+ { return 0; }
+ };
+#endif
+
// @} group hashes
// Hint about performance of hash functor. If not fast the hash-based