// -*- 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 // //===----------------------------------------------------------------------===// #ifndef _LIBCPP___FWD_FORMAT_H #define _LIBCPP___FWD_FORMAT_H #include <__config> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif _LIBCPP_BEGIN_NAMESPACE_STD #if _LIBCPP_STD_VER >= 20 template class basic_format_arg; template class basic_format_context; template struct formatter; # if _LIBCPP_STD_VER >= 23 _LIBCPP_DIAGNOSTIC_PUSH _LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wshadow") _LIBCPP_GCC_DIAGNOSTIC_IGNORED("-Wshadow") // This shadows map, set, and string. enum class range_format { disabled, map, set, sequence, string, debug_string }; _LIBCPP_DIAGNOSTIC_POP template constexpr range_format format_kind = [] { // [format.range.fmtkind]/1 // A program that instantiates the primary template of format_kind is ill-formed. static_assert(sizeof(_Rp) != sizeof(_Rp), "create a template specialization of format_kind for your type"); return range_format::disabled; }(); # endif // _LIBCPP_STD_VER >= 23 #endif // _LIBCPP_STD_VER >= 20 _LIBCPP_END_NAMESPACE_STD #endif // _LIBCPP___FWD_FORMAT_H