Mark de Wever 6551e59802 [libc++][modules] Update the .cppm files.
There are some minor fixes in the definiton and it is synced with
upstream changes.

This has been reviewed as part of D151814.
2023-06-15 18:12:06 +02:00

80 lines
2.2 KiB
C++

// -*- 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
//
//===----------------------------------------------------------------------===//
module;
#include <format>
export module std:format;
export namespace std {
// [format.context], class template basic_format_context
using std::basic_format_context;
using std::format_context;
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wformat_context;
#endif
// [format.args], class template basic_format_args
using std::basic_format_args;
using std::format_args;
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wformat_args;
#endif
// [format.fmt.string], class template basic_format_string
using std::basic_format_string;
using std::format_string;
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wformat_string;
#endif
// [format.functions], formatting functions
using std::format;
using std::format_to;
using std::vformat;
using std::vformat_to;
using std::format_to_n;
using std::format_to_n_result;
using std::formatted_size;
// [format.formatter], formatter
using std::formatter;
// [format.formattable], concept formattable
using std::formattable;
// [format.parse.ctx], class template basic_format_parse_context
using std::basic_format_parse_context;
using std::format_parse_context;
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wformat_parse_context;
#endif
// [format.range], formatting of ranges
// [format.range.fmtkind], variable template format_kind
using std::format_kind;
using std::range_format;
// [format.range.formatter], class template range_formatter
using std::range_formatter;
// [format.arg], class template basic_format_arg
using std::basic_format_arg;
using std::visit_format_arg;
// [format.arg.store], class template format-arg-store
using std::make_format_args;
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::make_wformat_args;
#endif
// [format.error], class format_error
using std::format_error;
} // namespace std