[libcxx-commits] [libcxx] [libc++] Instantiate hash function externally (PR #127040)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 26 07:19:19 PDT 2025


================
@@ -237,6 +237,14 @@ struct __murmur2_or_cityhash<_Size, 64> {
   }
 };
 
+#if _LIBCPP_AVAILABILITY_HAS_HASH
+[[__gnu__::__pure__]] _LIBCPP_EXPORTED_FROM_ABI size_t __hash_memory(_LIBCPP_NOESCAPE const void*, size_t) _NOEXCEPT;
+#else
+_LIBCPP_HIDE_FROM_ABI inline size_t __hash_memory(const void* __ptr, size_t __size) {
----------------
philnik777 wrote:

Just forgot it.

https://github.com/llvm/llvm-project/pull/127040


More information about the libcxx-commits mailing list