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

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 22 05:58:26 PST 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) {
----------------
mordante wrote:

Why is this version not `_NOEXCEPT`?

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


More information about the libcxx-commits mailing list