• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10export namespace std {
11  // [format.context], class template basic_format_context
12  using std::basic_format_context;
13  using std::format_context;
14#if _LIBCPP_HAS_WIDE_CHARACTERS
15  using std::wformat_context;
16#endif
17
18  // [format.args], class template basic_format_args
19  using std::basic_format_args;
20  using std::format_args;
21#if _LIBCPP_HAS_WIDE_CHARACTERS
22  using std::wformat_args;
23#endif
24
25  // [format.fmt.string], class template basic_format_string
26  using std::basic_format_string;
27  using std::format_string;
28#if _LIBCPP_HAS_WIDE_CHARACTERS
29  using std::wformat_string;
30#endif
31#if _LIBCPP_STD_VER >= 26
32  using std::runtime_format;
33#endif // _LIBCPP_STD_VER >= 26
34
35  // [format.functions], formatting functions
36  using std::format;
37  using std::format_to;
38  using std::vformat;
39  using std::vformat_to;
40
41  using std::format_to_n;
42  using std::format_to_n_result;
43  using std::formatted_size;
44
45  // [format.formatter], formatter
46  using std::formatter;
47
48#if _LIBCPP_STD_VER >= 23
49  using std::enable_nonlocking_formatter_optimization;
50
51  // [format.formattable], concept formattable
52  using std::formattable;
53#endif
54
55  // [format.parse.ctx], class template basic_format_parse_context
56  using std::basic_format_parse_context;
57  using std::format_parse_context;
58#if _LIBCPP_HAS_WIDE_CHARACTERS
59  using std::wformat_parse_context;
60#endif
61
62#if _LIBCPP_STD_VER >= 23
63  // [format.range], formatting of ranges
64  // [format.range.fmtkind], variable template format_kind
65  using std::format_kind;
66  using std::range_format;
67
68  // [format.range.formatter], class template range_formatter
69  using std::range_formatter;
70#endif // _LIBCPP_STD_VER >= 23
71
72  // [format.arg], class template basic_format_arg
73  using std::basic_format_arg;
74  using std::visit_format_arg;
75
76  // [format.arg.store], class template format-arg-store
77  using std::make_format_args;
78#if _LIBCPP_HAS_WIDE_CHARACTERS
79  using std::make_wformat_args;
80#endif
81
82  // [format.error], class format_error
83  using std::format_error;
84} // namespace std
85