aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__fwd
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2024-03-08 20:43:10 +0100
committerGitHub <noreply@github.com>2024-03-08 20:43:10 +0100
commit087666811452e1b6490d59572337aaa907f93e7c (patch)
treee09149273b17c4e3e00862e845de6d7102611f04 /libcxx/include/__fwd
parent70da9155efb3aeb2c6b37678168cf29f91e80734 (diff)
downloadllvm-087666811452e1b6490d59572337aaa907f93e7c.zip
llvm-087666811452e1b6490d59572337aaa907f93e7c.tar.gz
llvm-087666811452e1b6490d59572337aaa907f93e7c.tar.bz2
[libc++][NFC] Move __format/format_fwd.h to __fwd/format.h (#84336)
Diffstat (limited to 'libcxx/include/__fwd')
-rw-r--r--libcxx/include/__fwd/format.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/libcxx/include/__fwd/format.h b/libcxx/include/__fwd/format.h
new file mode 100644
index 0000000..6f5c712
--- /dev/null
+++ b/libcxx/include/__fwd/format.h
@@ -0,0 +1,39 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___FWD_FORMAT_H
+#define _LIBCPP___FWD_FORMAT_H
+
+#include <__availability>
+#include <__config>
+#include <__iterator/concepts.h>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+# pragma GCC system_header
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+#if _LIBCPP_STD_VER >= 20
+
+template <class _Context>
+class _LIBCPP_TEMPLATE_VIS basic_format_arg;
+
+template <class _OutIt, class _CharT>
+ requires output_iterator<_OutIt, const _CharT&>
+class _LIBCPP_TEMPLATE_VIS basic_format_context;
+
+template <class _Tp, class _CharT = char>
+struct _LIBCPP_TEMPLATE_VIS formatter;
+
+#endif //_LIBCPP_STD_VER >= 20
+
+_LIBCPP_END_NAMESPACE_STD
+
+#endif // _LIBCPP___FWD_FORMAT_H