[libcxx-commits] [libcxx] Add C++23 stacktrace (P0881R7) (PR #136528)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 1 01:29:57 PDT 2025
================
@@ -0,0 +1,37 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++23
+
+/*
+ (19.6.6) Hash Support
+
+ template<> struct hash<stacktrace_entry>; [1]
+ template<class Allocator> struct hash<basic_stacktrace<Allocator>>; [2]
+
+ The specializations are enabled ([unord.hash]).
+*/
+
+#include <cassert>
+#include <functional>
----------------
philnik777 wrote:
I'm pretty sure this include isn't required.
https://github.com/llvm/llvm-project/pull/136528
More information about the libcxx-commits
mailing list