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#ifndef _LIBCPP_HAS_NO_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#ifndef _LIBCPP_HAS_NO_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#ifndef _LIBCPP_HAS_NO_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 // [format.formattable], concept formattable 50 using std::formattable; 51#endif 52 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; 58#endif 59 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; 65 66 // [format.range.formatter], class template range_formatter 67 using std::range_formatter; 68#endif // _LIBCPP_STD_VER >= 23 69 70 // [format.arg], class template basic_format_arg 71 using std::basic_format_arg; 72 using std::visit_format_arg; 73 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; 78#endif 79 80 // [format.error], class format_error 81 using std::format_error; 82} // namespace std 83