• 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
10module;
11#include <format>
12
13export module std:format;
14export namespace std {
15  // [format.context], class template basic_format_context
16  using std::basic_format_context;
17  using std::format_context;
18#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
19  using std::wformat_context;
20#endif
21
22  // [format.args], class template basic_format_args
23  using std::basic_format_args;
24  using std::format_args;
25#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
26  using std::wformat_args;
27#endif
28
29  // [format.fmt.string], class template basic_format_string
30  using std::basic_format_string;
31  using std::format_string;
32#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
33  using std::wformat_string;
34#endif
35
36  // [format.functions], formatting functions
37  using std::format;
38  using std::format_to;
39  using std::vformat;
40  using std::vformat_to;
41
42  using std::format_to_n;
43  using std::format_to_n_result;
44  using std::formatted_size;
45
46  // [format.formatter], formatter
47  using std::formatter;
48
49  // [format.formattable], concept formattable
50  using std::formattable;
51
52  // [format.parse.ctx], class template basic_format_parse_context
53  using std::basic_format_parse_context;
54  using std::format_parse_context;
55#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
56  using std::wformat_parse_context;
57#endif
58
59  // [format.range], formatting of ranges
60  // [format.range.fmtkind], variable template format_kind
61  using std::format_kind;
62  using std::range_format;
63
64  // [format.range.formatter], class template range_formatter
65  using std::range_formatter;
66
67  // [format.arg], class template basic_format_arg
68  using std::basic_format_arg;
69  using std::visit_format_arg;
70
71  // [format.arg.store], class template format-arg-store
72  using std::make_format_args;
73#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
74  using std::make_wformat_args;
75#endif
76
77  // [format.error], class format_error
78  using std::format_error;
79} // namespace std
80