2 //===----------------------------------------------------------------------===//
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
8 //===----------------------------------------------------------------------===//
10 export namespace std {
11 // [format.context], class template basic_format_context
12 using std::basic_format_context;
13 using std::format_context;
14 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
15 using std::wformat_context;
18 // [format.args], class template basic_format_args
19 using std::basic_format_args;
20 using std::format_args;
21 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
22 using std::wformat_args;
25 // [format.fmt.string], class template basic_format_string
26 using std::basic_format_string;
27 using std::format_string;
28 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
29 using std::wformat_string;
31 #if _LIBCPP_STD_VER >= 26
32 using std::runtime_format;
33 #endif //_LIBCPP_STD_VER >= 26
35 // [format.functions], formatting functions
39 using std::vformat_to;
41 using std::format_to_n;
42 using std::format_to_n_result;
43 using std::formatted_size;
45 // [format.formatter], formatter
48 #if _LIBCPP_STD_VER >= 23
49 // [format.formattable], concept formattable
50 using std::formattable;
53 // [format.parse.ctx], class template basic_format_parse_context
54 using std::basic_format_parse_context;
55 using std::format_parse_context;
56 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
57 using std::wformat_parse_context;
60 #if _LIBCPP_STD_VER >= 23
61 // [format.range], formatting of ranges
62 // [format.range.fmtkind], variable template format_kind
63 using std::format_kind;
64 using std::range_format;
66 // [format.range.formatter], class template range_formatter
67 using std::range_formatter;
68 #endif // _LIBCPP_STD_VER >= 23
70 // [format.arg], class template basic_format_arg
71 using std::basic_format_arg;
72 using std::visit_format_arg;
74 // [format.arg.store], class template format-arg-store
75 using std::make_format_args;
76 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
77 using std::make_wformat_args;
80 // [format.error], class format_error
81 using std::format_error;