aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__fwd
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2024-03-03 20:45:17 +0100
committerGitHub <noreply@github.com>2024-03-03 20:45:17 +0100
commit33de5a316caa3c9b07ee1ccc7fbc3434247ff787 (patch)
tree1633597185eef413e14f8d5f020ba234c6ecf8c7 /libcxx/include/__fwd
parent0c90e8837a9e5f27985ccaf85120083db9e1b43e (diff)
downloadllvm-33de5a316caa3c9b07ee1ccc7fbc3434247ff787.zip
llvm-33de5a316caa3c9b07ee1ccc7fbc3434247ff787.tar.gz
llvm-33de5a316caa3c9b07ee1ccc7fbc3434247ff787.tar.bz2
[libc++] Rename __fwd/hash.h to __fwd/functional.h and add reference_wrapper (#81445)
We forward declare `reference_wrapper` in multiple places already. This moves the declaration to the canonical place and removes unnecessary includes of `__functional/reference_wrapper.h`.
Diffstat (limited to 'libcxx/include/__fwd')
-rw-r--r--libcxx/include/__fwd/functional.h (renamed from libcxx/include/__fwd/hash.h)9
1 files changed, 6 insertions, 3 deletions
diff --git a/libcxx/include/__fwd/hash.h b/libcxx/include/__fwd/functional.h
index af9eca8..32c9ef3 100644
--- a/libcxx/include/__fwd/hash.h
+++ b/libcxx/include/__fwd/functional.h
@@ -6,8 +6,8 @@
//
//===---------------------------------------------------------------------===//
-#ifndef _LIBCPP___FWD_HASH_H
-#define _LIBCPP___FWD_HASH_H
+#ifndef _LIBCPP___FWD_FUNCTIONAL_H
+#define _LIBCPP___FWD_FUNCTIONAL_H
#include <__config>
@@ -20,6 +20,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template <class>
struct _LIBCPP_TEMPLATE_VIS hash;
+template <class>
+class _LIBCPP_TEMPLATE_VIS reference_wrapper;
+
_LIBCPP_END_NAMESPACE_STD
-#endif // _LIBCPP___FWD_HASH_H
+#endif // _LIBCPP___FWD_FUNCTIONAL_H