11#if defined(FMT_IMPORT_STD) && !defined(FMT_MODULE)
20# include <type_traits>
24#define FMT_VERSION 120100
27#if defined(__clang__) && !defined(__ibmxl__)
28# define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
30# define FMT_CLANG_VERSION 0
32#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
33# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
35# define FMT_GCC_VERSION 0
38# define FMT_ICC_VERSION __ICL
39#elif defined(__INTEL_COMPILER)
40# define FMT_ICC_VERSION __INTEL_COMPILER
42# define FMT_ICC_VERSION 0
45# define FMT_MSC_VERSION _MSC_VER
47# define FMT_MSC_VERSION 0
51#ifdef _GLIBCXX_RELEASE
52# define FMT_GLIBCXX_RELEASE _GLIBCXX_RELEASE
54# define FMT_GLIBCXX_RELEASE 0
57# define FMT_LIBCPP_VERSION _LIBCPP_VERSION
59# define FMT_LIBCPP_VERSION 0
63# define FMT_CPLUSPLUS _MSVC_LANG
65# define FMT_CPLUSPLUS __cplusplus
70# define FMT_HAS_FEATURE(x) __has_feature(x)
72# define FMT_HAS_FEATURE(x) 0
75# define FMT_HAS_INCLUDE(x) __has_include(x)
77# define FMT_HAS_INCLUDE(x) 0
80# define FMT_HAS_BUILTIN(x) __has_builtin(x)
82# define FMT_HAS_BUILTIN(x) 0
84#ifdef __has_cpp_attribute
85# define FMT_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
87# define FMT_HAS_CPP_ATTRIBUTE(x) 0
90#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
91 (FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
93#define FMT_HAS_CPP17_ATTRIBUTE(attribute) \
94 (FMT_CPLUSPLUS >= 201703L && FMT_HAS_CPP_ATTRIBUTE(attribute))
97#ifdef FMT_USE_CONSTEXPR
99#elif FMT_GCC_VERSION >= 702 && FMT_CPLUSPLUS >= 201402L
102# define FMT_USE_CONSTEXPR 1
104# define FMT_USE_CONSTEXPR 0
105#elif FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VERSION >= 1912
106# define FMT_USE_CONSTEXPR 1
108# define FMT_USE_CONSTEXPR 0
111# define FMT_CONSTEXPR constexpr
113# define FMT_CONSTEXPR
117#ifdef FMT_USE_CONSTEVAL
119#elif !defined(__cpp_lib_is_constant_evaluated)
120# define FMT_USE_CONSTEVAL 0
121#elif FMT_CPLUSPLUS < 201709L
122# define FMT_USE_CONSTEVAL 0
123#elif FMT_GLIBCXX_RELEASE && FMT_GLIBCXX_RELEASE < 10
124# define FMT_USE_CONSTEVAL 0
125#elif FMT_LIBCPP_VERSION && FMT_LIBCPP_VERSION < 10000
126# define FMT_USE_CONSTEVAL 0
127#elif defined(__apple_build_version__) && __apple_build_version__ < 14000029L
128# define FMT_USE_CONSTEVAL 0
129#elif FMT_MSC_VERSION && FMT_MSC_VERSION < 1929
130# define FMT_USE_CONSTEVAL 0
131#elif defined(__cpp_consteval)
132# define FMT_USE_CONSTEVAL 1
133#elif FMT_GCC_VERSION >= 1002 || FMT_CLANG_VERSION >= 1101
134# define FMT_USE_CONSTEVAL 1
136# define FMT_USE_CONSTEVAL 0
139# define FMT_CONSTEVAL consteval
140# define FMT_CONSTEXPR20 constexpr
142# define FMT_CONSTEVAL
143# define FMT_CONSTEXPR20
147#ifdef FMT_USE_EXCEPTIONS
149#elif defined(__GNUC__) && !defined(__EXCEPTIONS)
150# define FMT_USE_EXCEPTIONS 0
151#elif defined(__clang__) && !defined(__cpp_exceptions)
152# define FMT_USE_EXCEPTIONS 0
153#elif FMT_MSC_VERSION && !_HAS_EXCEPTIONS
154# define FMT_USE_EXCEPTIONS 0
156# define FMT_USE_EXCEPTIONS 1
158#if FMT_USE_EXCEPTIONS
160# define FMT_CATCH(x) catch (x)
162# define FMT_TRY if (true)
163# define FMT_CATCH(x) if (false)
166#ifdef FMT_NO_UNIQUE_ADDRESS
168#elif FMT_CPLUSPLUS < 202002L
170#elif FMT_HAS_CPP_ATTRIBUTE(no_unique_address)
171# define FMT_NO_UNIQUE_ADDRESS [[no_unique_address]]
173#elif FMT_MSC_VERSION >= 1929 && !FMT_CLANG_VERSION
174# define FMT_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
176#ifndef FMT_NO_UNIQUE_ADDRESS
177# define FMT_NO_UNIQUE_ADDRESS
180#if FMT_HAS_CPP17_ATTRIBUTE(fallthrough)
181# define FMT_FALLTHROUGH [[fallthrough]]
182#elif defined(__clang__)
183# define FMT_FALLTHROUGH [[clang::fallthrough]]
184#elif FMT_GCC_VERSION >= 700 && \
185 (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 520)
186# define FMT_FALLTHROUGH [[gnu::fallthrough]]
188# define FMT_FALLTHROUGH
192#if FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VERSION && !defined(__NVCC__)
193# define FMT_NORETURN [[noreturn]]
200#elif FMT_HAS_CPP17_ATTRIBUTE(nodiscard)
201# define FMT_NODISCARD [[nodiscard]]
203# define FMT_NODISCARD
206#if FMT_GCC_VERSION || FMT_CLANG_VERSION
207# define FMT_VISIBILITY(value) __attribute__((visibility(value)))
209# define FMT_VISIBILITY(value)
213#define FMT_PRAGMA_IMPL(x) _Pragma(#x)
214#if FMT_GCC_VERSION >= 504 && !defined(__NVCOMPILER)
217# define FMT_PRAGMA_GCC(x) FMT_PRAGMA_IMPL(GCC x)
219# define FMT_PRAGMA_GCC(x)
222# define FMT_PRAGMA_CLANG(x) FMT_PRAGMA_IMPL(clang x)
224# define FMT_PRAGMA_CLANG(x)
227# define FMT_MSC_WARNING(...) __pragma(warning(__VA_ARGS__))
229# define FMT_MSC_WARNING(...)
234#if !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
236# define FMT_GCC_OPTIMIZED
241#ifdef FMT_ALWAYS_INLINE
243#elif FMT_GCC_VERSION || FMT_CLANG_VERSION
244# define FMT_ALWAYS_INLINE inline __attribute__((always_inline))
246# define FMT_ALWAYS_INLINE inline
249#if defined(NDEBUG) || defined(FMT_GCC_OPTIMIZED)
250# define FMT_INLINE FMT_ALWAYS_INLINE
252# define FMT_INLINE inline
255#ifndef FMT_BEGIN_NAMESPACE
256# define FMT_BEGIN_NAMESPACE \
258 inline namespace v12 {
259# define FMT_END_NAMESPACE \
266# define FMT_BEGIN_EXPORT
267# define FMT_END_EXPORT
276#if !defined(FMT_HEADER_ONLY) && FMT_WIN32
277# if defined(FMT_LIB_EXPORT)
278# define FMT_API __declspec(dllexport)
279# elif defined(FMT_SHARED)
280# define FMT_API __declspec(dllimport)
282#elif defined(FMT_LIB_EXPORT) || defined(FMT_SHARED)
283# define FMT_API FMT_VISIBILITY("default")
289#ifndef FMT_OPTIMIZE_SIZE
290# define FMT_OPTIMIZE_SIZE 0
295#ifndef FMT_BUILTIN_TYPES
296# define FMT_BUILTIN_TYPES 1
299#define FMT_APPLY_VARIADIC(expr) \
300 using unused = int[]; \
301 (void)unused { 0, (expr, 0)... }
306template <
bool B,
typename T =
void>
308template <
bool B,
typename T,
typename F>
321template <
typename T>
using decay_t =
typename std::decay<T>::type;
324#if (FMT_GCC_VERSION && FMT_GCC_VERSION < 500) || FMT_MSC_VERSION
326template <
typename...>
struct void_t_impl {
329template <
typename... T>
using void_t =
typename void_t_impl<T...>::type;
331template <
typename...>
using void_t = void;
342# define FMT_ENABLE_IF(...)
344# define FMT_ENABLE_IF(...) fmt::enable_if_t<(__VA_ARGS__), int> = 0
347template <
typename T>
constexpr auto min_of(T a, T b) -> T {
348 return a < b ? a : b;
350template <
typename T>
constexpr auto max_of(T a, T b) -> T {
351 return a > b ? a : b;
355 const char* message);
367#if FMT_CPLUSPLUS >= 202002L && FMT_GLIBCXX_RELEASE >= 12 && \
368 (FMT_CLANG_VERSION >= 1400 && FMT_CLANG_VERSION < 1500)
370 return __builtin_is_constant_evaluated();
371#elif defined(__cpp_lib_is_constant_evaluated)
373 return std::is_constant_evaluated();
375 return default_value;
385 const char* message);
387#if defined(FMT_ASSERT)
391# define FMT_ASSERT(condition, message) \
392 fmt::detail::ignore_unused((condition), (message))
394# define FMT_ASSERT(condition, message) \
397 : ::fmt::assert_fail(__FILE__, __LINE__, (message)))
402#elif defined(__SIZEOF_INT128__) && !defined(__NVCC__) && \
403 !(FMT_CLANG_VERSION && FMT_MSC_VERSION)
404# define FMT_USE_INT128 1
410# define FMT_USE_INT128 0
422#elif FMT_CLANG_VERSION >= 1500 && !defined(__CUDACC__)
423# define FMT_USE_BITINT 1
425# define FMT_USE_BITINT 0
430template <
int N>
using bitint = _BitInt(N);
431template <
int N>
using ubitint =
unsigned _BitInt(N);
438template <
typename Int>
440 FMT_ASSERT(std::is_unsigned<Int>::value ||
value >= 0,
"negative value");
444template <
typename Char>
449template <
typename T,
typename Enable =
void>
453 typename T::value_type(), 0))>>
454 : std::is_convertible<decltype(std::declval<T>().data()),
455 const typename T::value_type*> {};
462# define FMT_UNICODE 1
466 "Unicode support requires compiling with /utf-8");
468template <
typename T>
constexpr auto narrow(T*) ->
char* {
return nullptr; }
473template <
typename Char>
476 for (; n != 0; ++s1, ++s2, --n) {
477 if (*s1 < *s2)
return -1;
478 if (*s1 > *s2)
return 1;
486template <
typename Container>
488 ->
decltype(back_inserter(std::declval<Container&>()));
491template <
typename It,
typename Enable = std::true_type>
494template <
typename It>
497 decltype(adl::invoke_back_inserter<typename It::container_type>()),
498 It>
::value>> : std::true_type {};
501template <
typename OutputIt>
503 typename OutputIt::container_type& {
504 struct accessor : OutputIt {
506 using OutputIt::container;
508 return *accessor(it).container;
535 : data_(s), size_(count) {}
544#if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION
557 template <
typename S,
559 typename S::value_type, Char>::value)>
561 : data_(s.data()), size_(s.size()) {}
564 constexpr auto data() const noexcept -> const Char* {
return data_; }
567 constexpr auto size() const noexcept ->
size_t {
return size_; }
570 constexpr auto end() const noexcept ->
iterator {
return data_ + size_; }
572 constexpr auto operator[](
size_t pos)
const noexcept ->
const Char& {
583 return size_ >= sv.size_ &&
detail::compare(data_, sv.data_, sv.size_) == 0;
586 return size_ >= 1 && *data_ == c;
595 if (result != 0)
return result;
596 return size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1);
601 return lhs.compare(rhs) == 0;
604 return lhs.compare(rhs) != 0;
607 return lhs.compare(rhs) < 0;
610 return lhs.compare(rhs) <= 0;
613 return lhs.compare(rhs) > 0;
616 return lhs.compare(rhs) >= 0;
635template <
typename OutputIt,
typename Char>
641template <
typename Char>
654template <
typename T,
typename Char =
char,
typename Enable =
void>
714 align_mask = 0x00038,
715 width_mask = 0x000C0,
716 precision_mask = 0x00300,
718 uppercase_mask = 0x01000,
719 alternate_mask = 0x02000,
720 localized_mask = 0x04000,
721 fill_size_mask = 0x38000,
727 fill_size_shift = 15,
732 unsigned data_ = 1 << fill_size_shift;
733 static_assert(
sizeof(basic_specs::data_) * CHAR_BIT >= 18,
"");
736 char fill_data_[max_fill_size] = {
' '};
739 data_ = (data_ & ~fill_size_mask) |
740 (
static_cast<unsigned>(size) << fill_size_shift);
748 data_ = (data_ & ~type_mask) |
static_cast<unsigned>(t);
752 return static_cast<fmt::align
>((data_ & align_mask) >> align_shift);
755 data_ = (data_ & ~align_mask) | (
static_cast<unsigned>(a) << align_shift);
759 return static_cast<arg_id_kind>((data_ & width_mask) >> width_shift);
762 data_ = (data_ & ~width_mask) | (
static_cast<unsigned>(w) << width_shift);
766 return static_cast<arg_id_kind>((data_ & precision_mask) >>
770 data_ = (data_ & ~precision_mask) |
771 (
static_cast<unsigned>(
p) << precision_shift);
775 return (data_ & (width_mask | precision_mask)) != 0;
779 return static_cast<fmt::sign
>((data_ & sign_mask) >> sign_shift);
782 data_ = (data_ & ~sign_mask) | (
static_cast<unsigned>(s) << sign_shift);
785 constexpr auto upper() const ->
bool {
return (data_ & uppercase_mask) != 0; }
788 constexpr auto alt() const ->
bool {
return (data_ & alternate_mask) != 0; }
793 return (data_ & localized_mask) != 0;
798 return (data_ & fill_size_mask) >> fill_size_shift;
801 template <
typename Char, FMT_ENABLE_IF(std::is_same<Char,
char>::value)>
802 constexpr auto fill() const -> const Char* {
805 template <
typename Char, FMT_ENABLE_IF(!std::is_same<Char,
char>::value)>
806 constexpr auto fill() const -> const Char* {
810 template <
typename Char>
constexpr auto fill_unit() const -> Char {
811 using uchar =
unsigned char;
812 return static_cast<Char
>(
static_cast<uchar
>(fill_data_[0]) |
813 (
static_cast<uchar
>(fill_data_[1]) << 8) |
814 (
static_cast<uchar
>(fill_data_[2]) << 16));
822 template <
typename Char>
824 auto size = s.
size();
828 fill_data_[0] =
static_cast<char>(uchar);
829 fill_data_[1] =
static_cast<char>(uchar >> 8);
830 fill_data_[2] =
static_cast<char>(uchar >> 16);
833 FMT_ASSERT(size <= max_fill_size,
"invalid fill");
834 for (
size_t i = 0; i < size; ++i)
835 fill_data_[i & 3] =
static_cast<char>(s[i]);
840 for (
size_t i = 0; i < max_fill_size; ++i)
841 fill_data_[i] = specs.fill_data_[i];
879 constexpr auto end() const noexcept ->
iterator {
return fmt_.end(); }
889 if (next_arg_id_ < 0) {
890 report_error(
"cannot switch from manual to automatic argument indexing");
893 int id = next_arg_id_++;
901 if (next_arg_id_ > 0) {
902 report_error(
"cannot switch from automatic to manual argument indexing");
914#ifndef FMT_USE_LOCALE
915# define FMT_USE_LOCALE (FMT_OPTIMIZE_SIZE <= 1)
927 template <
typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
928 locale_ref(
const Locale& loc) : locale_(&loc) {
930 static_cast<void>(isalpha(
'x', loc));
933 inline explicit operator bool()
const noexcept {
return locale_ !=
nullptr; }
937 template <
typename Locale>
auto get()
const -> Locale;
957template <
typename Char, FMT_ENABLE_IF(is_code_unit<Char>::value)>
961template <
typename T, FMT_ENABLE_IF(is_std_
string_like<T>::value)>
966template <
typename Char>
972template <
typename T,
typename Enable =
void>
1009template <
typename T,
typename Char>
1012#define FMT_TYPE_CONSTANT(Type, constant) \
1013 template <typename Char> \
1014 struct type_constant<Type, Char> \
1015 : std::integral_constant<type, type::constant> {}
1039constexpr auto set(
type rhs) ->
int {
return 1 <<
static_cast<int>(rhs); }
1041 return ((
set >>
static_cast<int>(t)) & 1) != 0;
1061template <
typename T,
typename Enable = std::true_type>
1063template <
typename T>
1066template <
typename Char,
typename T>
struct named_arg;
1070template <
typename Char,
typename T>
1081template <
bool B = false>
constexpr auto count() ->
int {
return B ? 1 : 0; }
1082template <
bool B1,
bool B2,
bool... Tail>
constexpr auto count() ->
int {
1083 return (B1 ? 1 : 0) +
count<B2, Tail...>();
1099template <
typename Char>
1101 int named_arg_index,
1103 for (
int i = 0; i < named_arg_index; ++i) {
1108template <
typename Char,
typename T, FMT_ENABLE_IF(!is_named_arg<T>::value)>
1112template <
typename Char,
typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
1114 int& named_arg_index,
const T&
arg) {
1116 named_args[named_arg_index++] = {
arg.name, arg_index++};
1119template <
typename T,
typename Char,
1125template <
typename T,
typename Char,
1128 int& arg_index,
int& named_arg_index) {
1130 named_args[named_arg_index++] = {T::name, arg_index++};
1139template <
typename T>
1142template <
typename T>
1146template <
typename T,
typename Enable = std::true_type>
1149template <
typename T,
typename Enable = std::true_type>
1153template <
typename T>
1156 : std::true_type {};
1157template <
typename T>
1160 : std::true_type {};
1162template <
typename T,
typename U = remove_const_t<T>>
1164 bool_constant<(std::is_class<T>::value || std::is_enum<T>::value ||
1165 std::is_union<T>::value || std::is_array<T>::value) &&
1169template <
typename Char,
typename T,
typename U = remove_const_t<T>>
1182 static auto map(
signed char) -> int;
1183 static auto map(
unsigned char) -> unsigned;
1184 static auto map(
short) -> int;
1185 static auto map(
unsigned short) -> unsigned;
1187 static auto map(
unsigned) -> unsigned;
1190 static auto map(
long long) ->
long long;
1191 static auto map(
unsigned long long) ->
unsigned long long;
1194 static auto map(
bool) -> bool;
1202 template <
typename T, FMT_ENABLE_IF(is_code_unit<T>::value)>
1204 std::is_same<T, char>::value || std::is_same<T, Char>::value, Char,
void>;
1206 static auto map(
float) -> float;
1207 static auto map(
double) -> double;
1208 static auto map(
long double) ->
long double;
1210 static auto map(Char*) ->
const Char*;
1211 static auto map(
const Char*) ->
const Char*;
1212 template <
typename T,
typename C =
char_t<T>,
1213 FMT_ENABLE_IF(!std::is_po
inter<T>::value)>
1217 static auto map(
void*) ->
const void*;
1218 static auto map(
const void*) ->
const void*;
1219 static auto map(
volatile void*) ->
const void*;
1220 static auto map(
const volatile void*) ->
const void*;
1222 template <
typename T, FMT_ENABLE_IF(std::is_po
inter<T>::value ||
1223 std::is_member_po
inter<T>::value)>
1224 static auto map(
const T&) -> void;
1226 template <
typename T, FMT_ENABLE_IF(use_format_as<T>::value)>
1228 template <
typename T, FMT_ENABLE_IF(use_format_as_member<T>::value)>
1231 template <
typename T, FMT_ENABLE_IF(use_formatter<T>::value)>
1234 template <
typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
1239template <
typename T,
typename Char>
1243template <
typename T,
typename Char =
char>
1246template <
typename T,
typename Context,
1253template <
typename Char>
1266 constexpr auto num_args() const ->
int {
return num_args_; }
1271 if (
id >= num_args_)
report_error(
"argument not found");
1277 if (
id >= num_args_)
report_error(
"argument not found");
1306template <
typename Char, FMT_ENABLE_IF(std::is_
integral<Char>::value)>
1308 return c <= 0xff ? static_cast<char>(c) :
'\0';
1312template <
typename Char>
1315 auto c =
static_cast<unsigned char>(*begin);
1316 return static_cast<int>((0x3a55000000000000ull >> (2 * (c >> 3))) & 3) + 1;
1321template <
typename Char>
1323 int error_value)
noexcept ->
int {
1324 FMT_ASSERT(begin != end &&
'0' <= *begin && *begin <=
'9',
"");
1325 unsigned value = 0, prev = 0;
1331 }
while (
p != end &&
'0' <= *
p && *
p <=
'9');
1332 auto num_digits =
p - begin;
1334 int digits10 =
static_cast<int>(
sizeof(int) * CHAR_BIT * 3 / 10);
1337 unsigned max = INT_MAX;
1338 return num_digits ==
digits10 + 1 &&
1339 prev * 10ull + unsigned(
p[-1] -
'0') <= max
1340 ?
static_cast<int>(
value)
1354 return (
'a' <= c && c <=
'z') || (
'A' <= c && c <=
'Z') || c ==
'_';
1357template <
typename Char,
typename Handler>
1359 Handler&& handler) ->
const Char* {
1361 if (c >=
'0' && c <=
'9') {
1367 if (begin == end || (*begin !=
'}' && *begin !=
':'))
1370 handler.on_index(
index);
1380 }
while (it != end && (
is_name_start(*it) || (
'0' <= *it && *it <=
'9')));
1381 handler.on_name({begin,
to_unsigned(it - begin)});
1393 ctx.check_arg_id(
id);
1394 ctx.check_dynamic_spec(
id);
1399 ctx.check_arg_id(
id);
1409template <
typename Char>
1416 if (
'0' <= *begin && *begin <=
'9') {
1421 if (*begin ==
'{') {
1425 if (c ==
'}' || c ==
':') {
1426 int id = ctx.next_arg_id();
1429 ctx.check_dynamic_spec(
id);
1435 if (begin != end && *begin ==
'}')
return {++begin, kind};
1439 return {begin, kind};
1442template <
typename Char>
1447 specs.set_dynamic_width(result.kind);
1451template <
typename Char>
1463 specs.set_dynamic_precision(result.kind);
1470template <
typename Char>
1476 if (end - begin > 1) {
1480 if (begin == end)
return begin;
1487 if (current_state >= s || !valid)
1505 } parse_presentation_type{begin, specs, arg_type};
1532 report_error(
"format specifier requires numeric argument");
1536 specs.set_fill(
'0');
1541 case '1':
case '2':
case '3':
case '4':
case '5':
1542 case '6':
case '7':
case '8':
case '9':
case '{':
1545 begin =
parse_width(begin, end, specs, specs.width_ref, ctx);
1554 specs.set_localized();
1557 case 'd':
return parse_presentation_type(pres::dec, integral_set);
1559 case 'x':
return parse_presentation_type(pres::hex, integral_set);
1560 case 'o':
return parse_presentation_type(pres::oct, integral_set);
1562 case 'b':
return parse_presentation_type(pres::bin, integral_set);
1564 case 'e':
return parse_presentation_type(pres::exp,
float_set);
1566 case 'f':
return parse_presentation_type(pres::fixed,
float_set);
1568 case 'g':
return parse_presentation_type(pres::general,
float_set);
1570 case 'a':
return parse_presentation_type(pres::hexfloat,
float_set);
1573 return parse_presentation_type(pres::chr, integral_set);
1575 return parse_presentation_type(pres::string,
1580 return parse_presentation_type(pres::debug,
1582 case '}':
return begin;
1584 if (*begin ==
'}')
return begin;
1587 if (end - fill_end <= 0) {
1591 if (*begin ==
'{') {
1599 specs.set_align(alignment);
1600 begin = fill_end + 1;
1603 if (begin == end)
return begin;
1608template <
typename Char,
typename Handler>
1615 handler.on_error(
"invalid format string");
1621 handler.on_replacement_field(handler.on_arg_id(), begin);
1623 case '{': handler.on_text(begin, begin + 1);
return begin + 1;
1624 case ':': arg_id = handler.on_arg_id();
break;
1630 FMT_CONSTEXPR void on_index(
int id) { arg_id = handler.on_arg_id(
id); }
1632 arg_id = handler.on_arg_id(
id);
1634 } adapter = {handler, 0};
1636 arg_id = adapter.arg_id;
1637 Char c = begin != end ? *begin : Char();
1639 handler.on_replacement_field(arg_id, begin);
1643 handler.on_error(
"missing '}' in format string");
1649 begin = handler.on_format_specs(arg_id, begin + 1, end);
1650 if (begin == end || *begin !=
'}')
1651 return handler.on_error(
"unknown format specifier"), end;
1655template <
typename Char,
typename Handler>
1657 Handler&& handler) {
1658 auto begin = fmt.data(), end = begin + fmt.size();
1663 handler.on_text(begin,
p - 1);
1665 }
else if (c ==
'}') {
1666 if (
p == end || *
p !=
'}')
1667 return handler.on_error(
"unmatched '}' in format string");
1668 handler.on_text(begin,
p);
1672 handler.on_text(begin, end);
1677 auto type = specs.type();
1692template <
typename T,
typename Char>
1696 constexpr bool formattable =
1697 std::is_constructible<formatter<mapped_type, Char>>
::value;
1698 if (!formattable)
return ctx.begin();
1705template <
typename Char,
int NUM_ARGS,
int NUM_NAMED_ARGS,
bool DYNAMIC_NAMES>
1716 template <
typename... T>
1721 context_(fmt, NUM_ARGS, types_),
1723 int arg_index = 0, named_arg_index = 0;
1733 context_.check_arg_id(
id);
1737 for (
int i = 0; i < NUM_NAMED_ARGS; ++i) {
1738 if (named_args_[i].
name ==
id)
return named_args_[i].id;
1740 if (!DYNAMIC_NAMES)
on_error(
"argument not found");
1750 context_.advance_to(begin);
1751 if (
id >= 0 &&
id < NUM_ARGS)
return parse_funcs_[
id](context_);
1756 for (
int bracket_count = 0;
1757 begin != end && (bracket_count > 0 || *begin !=
'}'); ++begin) {
1760 else if (*begin ==
'}')
1786 : size_(sz), capacity_(sz), grow_(grow) {}
1788 constexpr buffer(grow_fun grow, T*
p =
nullptr,
size_t sz = 0,
1789 size_t cap = 0) noexcept
1790 : ptr_(
p), size_(sz), capacity_(cap), grow_(grow) {}
1798 capacity_ = buf_capacity;
1808 auto begin() noexcept -> T* {
return ptr_; }
1809 auto end() noexcept -> T* {
return ptr_ + size_; }
1811 auto begin() const noexcept -> const T* {
return ptr_; }
1812 auto end() const noexcept -> const T* {
return ptr_ + size_; }
1815 constexpr auto size() const noexcept ->
size_t {
return size_; }
1818 constexpr auto capacity() const noexcept ->
size_t {
return capacity_; }
1839 if (new_capacity > capacity_) grow_(*
this, new_capacity);
1844 ptr_[size_++] =
value;
1848 template <
typename U>
1851#if !FMT_MSC_VERSION || FMT_MSC_VERSION >= 1940
1858 auto free_cap = capacity_ -
size;
1860 if (free_cap <
count) {
1863 free_cap = capacity_ -
size;
1867 T* out = ptr_ +
size;
1868 for (
size_t i = 0; i <
count; ++i) out[i] =
begin[i];
1877 template <
typename Idx>
1885 constexpr auto count() const ->
size_t {
return 0; }
1886 constexpr auto limit(
size_t size)
const ->
size_t {
return size; }
1896 constexpr auto count() const ->
size_t {
return count_; }
1898 size_t n = limit_ > count_ ? limit_ - count_ : 0;
1905template <
typename OutputIt,
typename T,
typename Traits = buffer_traits>
1909 enum { buffer_size = 256 };
1910 T data_[buffer_size];
1919 const T*
begin = data_;
1926 : Traits(n),
buffer<T>(grow, data_, 0, buffer_size), out_(
out) {}
1941 auto count() const ->
size_t {
return Traits::count() + this->
size(); }
1944template <
typename T>
1949 enum { buffer_size = 256 };
1950 T data_[buffer_size];
1959 if (this->
data() == out_) {
1961 this->
set(data_, buffer_size);
1973 if (this->
data() != out_) {
1974 this->
set(data_, buffer_size);
1992 :
buffer<T>([](
buffer<T>&, size_t) {}, out, 0, ~size_t()) {}
1997template <
typename Container>
2000 using value_type =
typename Container::value_type;
2005 self.set(&self.container[0],
capacity);
2016template <
typename OutputIt>
2021 typename OutputIt::container_type::value_type>>
2037 enum { buffer_size = 256 };
2038 T data_[buffer_size];
2042 if (buf.
size() != buffer_size)
return;
2050 constexpr auto count() const noexcept ->
size_t {
2051 return count_ + this->
size();
2055template <
typename T>
2058template <
typename OutputIt,
typename InputIt,
typename =
void>
2060template <
typename OutputIt,
typename InputIt>
2064 .append(std::declval<InputIt>(),
2065 std::declval<InputIt>()))>> : std::true_type {};
2067template <
typename OutputIt,
typename InputIt,
typename =
void>
2070template <
typename OutputIt,
typename InputIt>
2074 .insert(get_container(std::declval<OutputIt>()).end(),
2075 std::declval<InputIt>(),
2076 std::declval<InputIt>()))>> : std::true_type {};
2079template <
typename T,
typename InputIt,
typename OutputIt,
2089template <
typename T,
typename InputIt,
typename OutputIt,
2091 !has_back_insert_iterator_container_append<
2093 has_back_insert_iterator_container_insert_at_end<
2098 c.insert(c.end(), begin, end);
2102template <
typename T,
typename InputIt,
typename OutputIt,
2104 (has_back_insert_iterator_container_append<
2106 has_back_insert_iterator_container_insert_at_end<
2109 while (begin != end) *out++ =
static_cast<T
>(*begin++);
2113template <
typename T,
typename V,
typename OutputIt>
2115 return copy<T>(s.begin(), s.end(), out);
2118template <
typename It,
typename Enable = std::true_type>
2120template <
typename It>
2124 std::is_base_of<buffer<typename It::container_type::value_type>,
2125 typename It::container_type>
::value>>
2126 : std::true_type {};
2129template <
typename T,
typename OutputIt,
2134template <
typename T,
typename OutputIt,
2140template <
typename Buf,
typename OutputIt>
2144template <
typename T,
typename OutputIt>
2171#if !FMT_BUILTIN_TYPES
2172# define FMT_BUILTIN , monostate
2178template <
typename Context>
class value {
2220 static_assert(N <= 64,
"unsupported _BitInt");
2224 static_assert(N <= 64,
"unsupported _BitInt");
2227 template <
typename T, FMT_ENABLE_IF(is_code_unit<T>::value)>
2230 std::is_same<T, char>::value || std::is_same<T, char_type>::value,
2231 "mixing character types is disallowed");
2246 template <
typename T,
typename C =
char_t<T>,
2247 FMT_ENABLE_IF(!std::is_po
inter<T>::value)>
2249 static_assert(std::is_same<C, char_type>::value,
2250 "mixing character types is disallowed");
2252 string.data = sv.data();
2253 string.size = sv.size();
2258 :
pointer(const_cast<const void*>(x)) {}
2260 :
pointer(const_cast<const void*>(x)) {}
2263 template <
typename T, FMT_ENABLE_IF(std::is_po
inter<T>::value ||
2264 std::is_member_po
inter<T>::value)>
2269 static_assert(
sizeof(T) == 0,
2270 "formatting of non-void pointers is disallowed");
2273 template <
typename T, FMT_ENABLE_IF(use_format_as<T>::value)>
2275 template <
typename T, FMT_ENABLE_IF(use_format_as_member<T>::value)>
2278 template <
typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
2281 template <
typename T,
2289 template <typename T, FMT_ENABLE_IF(has_formatter<T, char_type>())>
2295 const_cast<char*
>(&
reinterpret_cast<const volatile char&
>(x));
2298#if defined(__cpp_if_constexpr)
2300 custom.value =
const_cast<value_type*
>(&x);
2303 custom.format = format_custom<value_type>;
2306 template <typename T, FMT_ENABLE_IF(!has_formatter<T, char_type>())>
2310 type_is_unformattable_for<T, char_type> _;
2314 template <
typename T>
2315 static void format_custom(
void*
arg, parse_context<char_type>& parse_ctx,
2317 auto f = formatter<T, char_type>();
2319 using qualified_type =
2323 ctx.advance_to(cf.format(*
static_cast<qualified_type*
>(
arg), ctx));
2333template <
typename It,
typename T,
typename Enable =
void>
2338template <
typename It,
typename T>
2341 enable_if_t<
std::is_assignable<decltype(*std::declval<decay_t<It>&>()++),
2342 T>
::value>> : std::true_type {};
2348template <
typename Context,
typename First,
typename... T>
2354template <
typename Context,
typename... T,
size_t NUM_ARGS =
sizeof...(T)>
2360template <
typename Context,
int NUM_ARGS>
2364template <
typename Context,
int NUM_ARGS,
int NUM_NAMED_ARGS,
2365 unsigned long long DESC>
2372 template <
typename... T>
2375 int arg_index = 0, named_arg_index = 0;
2382 for (
size_t i = 1; i <
sizeof(
args) /
sizeof(*args); ++i)
2383 args[i] = rhs.args[i];
2384 for (
size_t i = 0; i < NUM_NAMED_ARGS; ++i)
2397template <
typename Context,
int NUM_ARGS,
int NUM_NAMED_ARGS,
2398 unsigned long long DESC>
2417 if (ctx.begin() == ctx.end() || *ctx.begin() ==
'}')
return ctx.begin();
2423 template <
type U = TYPE,
2431 template <
typename FormatContext>
2433 ->
decltype(ctx.out());
2436template <
typename T,
typename Enable =
void>
2438 :
bool_constant<mapped_type_constant<T>::value == type::custom_type> {};
2439template <
typename T>
2441 : std::false_type {};
2446template <
typename T1,
typename T2,
typename... Tail>
2463template <
typename Char>
2464FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(
int arg_id) {
2469 if (arg_id >= ctx->num_args())
report_error(
"argument not found");
2473template <
typename Char>
2511 using char_type =
typename Context::char_type;
2522 custom_.format(custom_.value, parse_ctx, ctx);
2528 : value_(args, size) {}
2529 template <
typename T>
2531 : value_(val), type_(
detail::stored_type_constant<T, Context>::value) {}
2533 constexpr explicit operator bool() const noexcept {
2543 template <
typename Visitor>
2572 value_.custom.format(value_.custom.value, parse_ctx, ctx);
2591 unsigned long long desc_;
2602 constexpr auto is_packed() const ->
bool {
2605 constexpr auto has_named_args() const ->
bool {
2612 return static_cast<detail::type>((desc_ >> shift) & mask);
2615 template <
int NUM_ARGS,
int NUM_NAMED_ARGS,
unsigned long long DESC>
2617 detail::format_arg_store<Context, NUM_ARGS, NUM_NAMED_ARGS, DESC>;
2625 template <
int NUM_ARGS,
int NUM_NAMED_ARGS,
unsigned long long DESC,
2628 const store<NUM_ARGS, NUM_NAMED_ARGS, DESC>& s)
2629 : desc_(DESC | (NUM_NAMED_ARGS != 0 ? +
detail::has_named_args_bit : 0)),
2632 template <
int NUM_ARGS,
int NUM_NAMED_ARGS,
unsigned long long DESC,
2635 : desc_(DESC | (NUM_NAMED_ARGS != 0 ? +
detail::has_named_args_bit : 0)),
2640 bool has_named =
false)
2641 : desc_(
detail::is_unpacked_bit |
detail::to_unsigned(count) |
2642 (has_named ? +
detail::has_named_args_bit : 0)),
2653 arg.type_ = type(
id);
2658 template <
typename Char>
2664 template <
typename Char>
2666 if (!has_named_args())
return -1;
2667 const auto& named_args =
2668 (is_packed() ?
values_[-1] :
args_[-1].value_).named_args;
2669 for (
size_t i = 0; i < named_args.size; ++i) {
2670 if (named_args.data[i].name ==
name)
return named_args.data[i].id;
2677 return static_cast<int>(is_packed() ? max_packed
2678 : desc_ &
~detail::is_unpacked_bit);
2698 : out_(
out), args_(
args), loc_(loc) {}
2705 return args_.get(
name);
2708 return args_.get_id(
name);
2739 static constexpr int num_static_named_args =
2743 char,
static_cast<int>(
sizeof...(T)), num_static_named_args,
2757 std::is_reference<T>::value)...>() == 0,
2758 "passing views as lvalues is disallowed");
2760#ifdef FMT_ENFORCE_COMPILE_STRING
2763 "FMT_ENFORCE_COMPILE_STRING requires format strings to use FMT_STRING");
2766 template <
typename S,
2767 FMT_ENABLE_IF(std::is_convertible<const S&, string_view>::value)>
2772#ifdef FMT_ENFORCE_COMPILE_STRING
2775 "FMT_ENFORCE_COMPILE_STRING requires format strings to use FMT_STRING");
2778 template <
typename S,
2779 FMT_ENABLE_IF(std::is_base_of<detail::compile_string, S>::value&&
2780 std::is_same<typename S::char_type, char>::value)>
2796template <
typename T,
typename Char =
char>
2800#ifdef __cpp_concepts
2801template <
typename T,
typename Char =
char>
2806template <
typename T,
typename Char>
2820template <
typename Context =
context,
typename... T,
2821 int NUM_ARGS =
sizeof...(T),
2831template <
typename... T>
2845template <
typename Char,
typename T>
2851template <
typename OutputIt,
2871template <
typename OutputIt,
typename... T,
2886template <
typename OutputIt,
typename... T,
2893 return {buf.out(), buf.count()};
2902template <
typename OutputIt,
typename... T,
2926 return {result.out, result.size > N};
2929template <
size_t N,
typename... T>
2933 return {result.out, result.size > N};
2937template <
typename... T>
2939 T&&... args) ->
size_t {
2958template <
typename... T>
2960 vargs<T...> va = {{args...}};
2975template <
typename... T>
2977 vargs<T...> va = {{args...}};
2981 :
vprint(f, fmt.str, va);
2986template <
typename... T>
2988 vargs<T...> va = {{args...}};
2996template <
typename... T>
2998 return fmt::println(stdout, fmt,
static_cast<T&&
>(args)...);
3007#ifdef FMT_HEADER_ONLY
constexpr auto format_as(HAL_AddressableLEDColorOrder order)
Definition AddressableLEDTypes.h:34
#define S(label, offset, message)
Definition Errors.hpp:113
then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file
Definition ThirdPartyNotices.txt:204
typename std::enable_if< B, T >::type enable_if_t
Definition base.h:307
#define FMT_ASSERT(condition, message)
Definition base.h:394
#define FMT_END_EXPORT
Definition base.h:267
context format_context
Definition base.h:639
std::integral_constant< bool, B > bool_constant
Definition base.h:310
FMT_NODISCARD FMT_INLINE auto formatted_size(format_string< T... > fmt, T &&... args) -> size_t
Returns the number of chars in the output of format(fmt, args...).
Definition base.h:2938
#define FMT_BUILTIN_TYPES
Definition base.h:296
#define FMT_PRAGMA_CLANG(x)
Definition base.h:224
#define FMT_CONSTEVAL
Definition base.h:142
#define FMT_TYPE_CONSTANT(Type, constant)
Definition base.h:1012
basic_string_view< char > string_view
Definition base.h:620
#define FMT_UNICODE
Definition base.h:462
auto arg(const Char *name, const T &arg) -> detail::named_arg< Char, T >
Returns a named argument to be used in a formatting function.
Definition base.h:2846
constexpr auto min_of(T a, T b) -> T
Definition base.h:347
typename std::remove_const< T >::type remove_const_t
Definition base.h:314
detail::format_arg_store< context, sizeof...(T), detail::count_named_args< T... >(), detail::make_descriptor< context, T... >()> vargs
Definition base.h:2832
FMT_API void vprintln(FILE *f, string_view fmt, format_args args)
#define FMT_FALLTHROUGH
Definition base.h:188
auto vformat_to(OutputIt &&out, string_view fmt, format_args args) -> remove_cvref_t< OutputIt >
Formats a string and writes the output to out.
Definition base.h:2854
#define FMT_NODISCARD
Definition base.h:203
typename std::remove_reference< T >::type remove_reference_t
Definition base.h:312
#define FMT_WIN32
Definition base.h:273
FMT_API void vprint(string_view fmt, format_args args)
Definition format-inl.h:1751
auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args) -> format_to_n_result< OutputIt >
Definition base.h:2888
FMT_INLINE auto format_to(OutputIt &&out, format_string< T... > fmt, T &&... args) -> remove_cvref_t< OutputIt >
Formats args according to specifications in fmt, writes the result to the output iterator out and ret...
Definition base.h:2874
typename fstring< T... >::t format_string
Definition base.h:2794
#define FMT_TRY
Definition base.h:162
#define FMT_VISIBILITY(value)
Definition base.h:209
#define FMT_GCC_VERSION
Definition base.h:35
typename std::make_unsigned< T >::type make_unsigned_t
Definition base.h:318
#define FMT_PRAGMA_GCC(x)
Definition base.h:219
#define FMT_OPTIMIZE_SIZE
Definition base.h:290
FMT_INLINE void print(format_string< T... > fmt, T &&... args)
Formats args according to specifications in fmt and writes the output to stdout.
Definition base.h:2959
parse_context< char > format_parse_context
Definition base.h:634
basic_appender< char > appender
Definition base.h:623
typename std::remove_cv< remove_reference_t< T > >::type remove_cvref_t
Definition base.h:316
constexpr auto max_of(T a, T b) -> T
Definition base.h:350
#define FMT_CONSTEXPR
Definition base.h:113
align
Definition base.h:688
@ none
Definition base.h:688
@ numeric
Definition base.h:688
@ right
Definition base.h:688
@ left
Definition base.h:688
@ center
Definition base.h:688
#define FMT_ALWAYS_INLINE
Definition base.h:246
FMT_INLINE void println(FILE *f, format_string< T... > fmt, T &&... args)
Formats args according to specifications in fmt and writes the output to the file f followed by a new...
Definition base.h:2987
arg_id_kind
Definition base.h:690
@ none
Definition base.h:690
@ index
Definition base.h:690
@ name
Definition base.h:690
FMT_NORETURN FMT_API void assert_fail(const char *file, int line, const char *message)
Definition format-inl.h:36
FMT_NORETURN FMT_API void report_error(const char *message)
Reports a format error at compile time or, via a format_error exception, at runtime.
Definition format-inl.h:138
#define FMT_BEGIN_NAMESPACE
Definition base.h:256
sign
Definition base.h:689
@ none
Definition base.h:689
@ plus
Definition base.h:689
@ minus
Definition base.h:689
@ space
Definition base.h:689
auto runtime(string_view s) -> runtime_format_string<>
Creates a runtime format string.
Definition base.h:2733
#define FMT_BUILTIN
Definition base.h:2172
conditional_t< std::is_same< OutputIt, appender >::value, context, generic_context< OutputIt, Char > > basic_format_context
Definition base.h:636
#define FMT_API
Definition base.h:286
#define FMT_USE_CONSTEVAL
Definition base.h:120
#define FMT_APPLY_VARIADIC(expr)
Definition base.h:299
#define FMT_ENABLE_IF(...)
Definition base.h:344
#define FMT_BEGIN_EXPORT
Definition base.h:266
FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string< T... > fmt, T &&... args) -> format_to_n_result< OutputIt >
Formats args according to specifications in fmt, writes up to n characters of the result to the outpu...
Definition base.h:2904
void void_t
Definition base.h:331
#define FMT_CATCH(x)
Definition base.h:163
parse_context< Char > basic_format_parse_context
Definition base.h:633
#define FMT_INLINE
Definition base.h:250
typename std::decay< T >::type decay_t
Definition base.h:321
#define FMT_NO_UNIQUE_ADDRESS
Definition base.h:177
basic_format_args< context > format_args
Definition base.h:651
#define FMT_NORETURN
Definition base.h:195
#define FMT_MSC_WARNING(...)
Definition base.h:229
typename std::conditional< B, T, F >::type conditional_t
Definition base.h:309
#define FMT_CONSTEXPR20
Definition base.h:143
typename std::underlying_type< T >::type underlying_t
Definition base.h:320
presentation_type
Definition base.h:665
@ oct
Definition base.h:674
@ hexfloat
Definition base.h:685
@ dec
Definition base.h:672
@ none
Definition base.h:667
@ chr
Definition base.h:676
@ general
Definition base.h:684
@ debug
Definition base.h:668
@ exp
Definition base.h:682
@ hex
Definition base.h:673
@ bin
Definition base.h:675
@ pointer
Definition base.h:679
@ fixed
Definition base.h:683
#define FMT_END_NAMESPACE
Definition base.h:259
FMT_API void vprint_buffered(FILE *f, string_view fmt, format_args args)
conditional_t< std::is_same< Char, char >::value, context, generic_context< basic_appender< Char >, Char > > buffered_context
Definition base.h:642
decltype(nullptr) nullptr_t
Definition base.h:322
bool_constant<!std::is_same< detail::mapped_t< conditional_t< std::is_void< T >::value, int *, T >, Char >, void >::value > is_formattable
Definition base.h:2797
constexpr FMT_ALWAYS_INLINE auto make_format_args(T &... args) -> detail::format_arg_store< Context, NUM_ARGS, NUM_NAMED_ARGS, DESC >
Constructs an object that stores references to arguments and can be implicitly converted to format_ar...
Definition base.h:2824
FMT_CONSTEXPR20 auto operator=(T c) -> basic_appender &
Definition base.h:2493
FMT_CONSTEXPR20 auto operator++(int) -> basic_appender
Definition base.h:2499
detail::buffer< Char > * container
Definition base.h:2486
FMT_CONSTEXPR20 auto operator++() -> basic_appender &
Definition base.h:2498
detail::buffer< Char > container_type
Definition base.h:2489
FMT_CONSTEXPR20 auto operator*() -> basic_appender &
Definition base.h:2497
FMT_CONSTEXPR basic_appender(detail::buffer< T > &buf)
Definition base.h:2491
FMT_CONSTEXPR void copy_fill_from(const basic_specs &specs)
Definition base.h:838
FMT_CONSTEXPR void set_fill(char c)
Definition base.h:817
constexpr auto align() const -> align
Definition base.h:751
FMT_CONSTEXPR void set_dynamic_precision(arg_id_kind p)
Definition base.h:769
FMT_CONSTEXPR auto dynamic_precision() const -> arg_id_kind
Definition base.h:765
FMT_CONSTEXPR void set_fill(basic_string_view< Char > s)
Definition base.h:823
constexpr auto sign() const -> sign
Definition base.h:778
FMT_CONSTEXPR void set_alt()
Definition base.h:789
constexpr auto localized() const -> bool
Definition base.h:792
FMT_CONSTEXPR void set_sign(fmt::sign s)
Definition base.h:781
constexpr auto dynamic() const -> bool
Definition base.h:774
constexpr auto upper() const -> bool
Definition base.h:785
FMT_CONSTEXPR void clear_alt()
Definition base.h:790
constexpr auto type() const -> presentation_type
Definition base.h:744
constexpr auto fill() const -> const Char *
Definition base.h:802
FMT_CONSTEXPR void set_upper()
Definition base.h:786
constexpr auto alt() const -> bool
Definition base.h:788
constexpr auto dynamic_width() const -> arg_id_kind
Definition base.h:758
constexpr auto fill_unit() const -> Char
Definition base.h:810
FMT_CONSTEXPR void set_align(fmt::align a)
Definition base.h:754
FMT_CONSTEXPR void set_type(presentation_type t)
Definition base.h:747
FMT_CONSTEXPR void set_dynamic_width(arg_id_kind w)
Definition base.h:761
constexpr auto fill_size() const -> size_t
Definition base.h:797
FMT_CONSTEXPR void set_localized()
Definition base.h:795
An implementation of std::basic_string_view for pre-C++17.
Definition base.h:522
constexpr auto end() const noexcept -> iterator
Definition base.h:570
const Char * iterator
Definition base.h:529
constexpr auto size() const noexcept -> size_t
Returns the string size.
Definition base.h:567
constexpr basic_string_view(nullptr_t)=delete
FMT_CONSTEXPR basic_string_view(const S &s) noexcept
Constructs a string view from a std::basic_string or a std::basic_string_view object.
Definition base.h:560
constexpr auto data() const noexcept -> const Char *
Returns a pointer to the string data.
Definition base.h:564
friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool
Definition base.h:612
FMT_CONSTEXPR auto starts_with(Char c) const noexcept -> bool
Definition base.h:585
constexpr auto begin() const noexcept -> iterator
Definition base.h:569
friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool
Definition base.h:606
Char value_type
Definition base.h:528
FMT_CONSTEXPR auto starts_with(const Char *s) const -> bool
Definition base.h:588
friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool
Definition base.h:609
FMT_CONSTEXPR void remove_prefix(size_t n) noexcept
Definition base.h:576
FMT_CONSTEXPR friend auto operator==(basic_string_view lhs, basic_string_view rhs) -> bool
Definition base.h:599
friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool
Definition base.h:603
constexpr auto operator[](size_t pos) const noexcept -> const Char &
Definition base.h:572
constexpr basic_string_view(const Char *s, size_t count) noexcept
Constructs a string view object from a C string and a size.
Definition base.h:534
FMT_CONSTEXPR20 basic_string_view(const Char *s)
Constructs a string view object from a C string.
Definition base.h:543
FMT_CONSTEXPR auto starts_with(basic_string_view< Char > sv) const noexcept -> bool
Definition base.h:581
constexpr basic_string_view() noexcept
Definition base.h:531
friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool
Definition base.h:615
FMT_CONSTEXPR auto compare(basic_string_view other) const -> int
Definition base.h:592
FMT_CONSTEXPR void advance_to(iterator)
Definition base.h:2716
@ builtin_types
Definition base.h:2693
basic_format_arg< context > format_arg
Definition base.h:2692
FMT_CONSTEXPR context(iterator out, format_args args, locale_ref loc={})
Constructs a context object.
Definition base.h:2697
appender iterator
Definition base.h:2691
void operator=(const context &)=delete
FMT_CONSTEXPR auto locale() const -> locale_ref
Definition base.h:2718
FMT_CONSTEXPR auto arg_id(string_view name) const -> int
Definition base.h:2707
auto args() const -> const format_args &
Definition base.h:2710
context(context &&)=default
char char_type
The character type for the output.
Definition base.h:2690
FMT_CONSTEXPR auto out() const -> iterator
Definition base.h:2713
auto arg(string_view name) const -> format_arg
Definition base.h:2704
context(const context &)=delete
FMT_CONSTEXPR auto arg(int id) const -> format_arg
Definition base.h:2703
A contiguous memory buffer with an optional growing ability.
Definition base.h:1773
FMT_CONSTEXPR buffer(grow_fun grow, size_t sz) noexcept
Definition base.h:1785
auto end() const noexcept -> const T *
Definition base.h:1812
FMT_CONSTEXPR20 void append(const U *begin, const U *end)
Appends data to the end of the buffer.
Definition base.h:1855
auto begin() const noexcept -> const T *
Definition base.h:1811
FMT_CONSTEXPR void push_back(const T &value)
Definition base.h:1842
T value_type
Definition base.h:1802
FMT_CONSTEXPR void set(T *buf_data, size_t buf_capacity) noexcept
Sets the buffer data and capacity.
Definition base.h:1796
FMT_CONSTEXPR auto operator[](Idx index) const -> const T &
Definition base.h:1878
constexpr auto size() const noexcept -> size_t
Returns the size of this buffer.
Definition base.h:1815
FMT_CONSTEXPR void try_reserve(size_t new_capacity)
Definition base.h:1838
FMT_CONSTEXPR auto data() const noexcept -> const T *
Definition base.h:1822
constexpr buffer(grow_fun grow, T *p=nullptr, size_t sz=0, size_t cap=0) noexcept
Definition base.h:1788
buffer(const buffer &)=delete
auto end() noexcept -> T *
Definition base.h:1809
FMT_CONSTEXPR void try_resize(size_t count)
Definition base.h:1829
constexpr auto capacity() const noexcept -> size_t
Returns the capacity of this buffer.
Definition base.h:1818
FMT_CONSTEXPR20 ~buffer()=default
auto begin() noexcept -> T *
Definition base.h:1808
const T & const_reference
Definition base.h:1803
FMT_CONSTEXPR auto operator[](Idx index) -> T &
Definition base.h:1874
void operator=(const buffer &)=delete
FMT_CONSTEXPR auto data() noexcept -> T *
Returns a pointer to the buffer data (not null-terminated).
Definition base.h:1821
buffer(buffer &&)=default
FMT_CONSTEXPR void clear()
Clears this buffer.
Definition base.h:1825
constexpr auto num_args() const -> int
Definition base.h:1266
FMT_CONSTEXPR compile_parse_context(basic_string_view< Char > fmt, int num_args, const type *types, int next_arg_id=0)
Definition base.h:1261
FMT_CONSTEXPR auto next_arg_id() -> int
Definition base.h:1269
FMT_CONSTEXPR void check_arg_id(int id)
Definition base.h:1275
constexpr auto arg_type(int id) const -> type
Definition base.h:1267
FMT_CONSTEXPR void check_dynamic_spec(int arg_id)
Definition base.h:1281
typename OutputIt::container_type & container
Definition base.h:2009
container_buffer(Container &c)
Definition base.h:2011
FMT_CONSTEXPR counting_buffer()
Definition base.h:2048
constexpr auto count() const noexcept -> size_t
Definition base.h:2050
constexpr auto count() const -> size_t
Definition base.h:1896
constexpr fixed_buffer_traits(size_t limit)
Definition base.h:1895
FMT_CONSTEXPR auto limit(size_t size) -> size_t
Definition base.h:1897
iterator_buffer(OutputIt out, size_t=0)
Definition base.h:2028
iterator_buffer(typename OutputIt::container_type &c)
Definition base.h:2027
auto out() -> OutputIt
Definition base.h:2031
~iterator_buffer()
Definition base.h:1978
auto count() const -> size_t
Definition base.h:1984
iterator_buffer(T *out, size_t n=buffer_size)
Definition base.h:1967
auto out() -> T *
Definition base.h:1980
iterator_buffer(iterator_buffer &&other) noexcept
Definition base.h:1969
auto out() -> T *
Definition base.h:1994
iterator_buffer(T *out, size_t=0)
Definition base.h:1991
iterator_buffer(iterator_buffer &&other) noexcept
Definition base.h:1927
iterator_buffer(OutputIt out, size_t n=buffer_size)
Definition base.h:1925
auto count() const -> size_t
Definition base.h:1941
~iterator_buffer()
Definition base.h:1931
auto out() -> OutputIt
Definition base.h:1937
int int_value
Definition base.h:2184
FMT_INLINE value(long double x FMT_BUILTIN)
Definition base.h:2236
value(const T &)
Definition base.h:2265
uint128_opt uint128_value
Definition base.h:2189
bool bool_value
Definition base.h:2190
FMT_INLINE value(uint128_opt x FMT_BUILTIN)
Definition base.h:2215
value(const T &named_arg)
Definition base.h:2279
constexpr FMT_INLINE value(bitint< N > x FMT_BUILTIN)
Definition base.h:2219
constexpr FMT_INLINE value(T x FMT_BUILTIN)
Definition base.h:2228
unsigned long long ulong_long_value
Definition base.h:2187
double double_value
Definition base.h:2193
FMT_CONSTEXPR FMT_INLINE value(unsigned long x FMT_BUILTIN)
Definition base.h:2209
constexpr FMT_INLINE value(int x)
Definition base.h:2206
long double long_double_value
Definition base.h:2194
FMT_CONSTEXPR FMT_INLINE value(const char_type *x FMT_BUILTIN)
Definition base.h:2242
constexpr FMT_INLINE value(double x FMT_BUILTIN)
Definition base.h:2235
FMT_INLINE value(const volatile void *x FMT_BUILTIN)
Definition base.h:2259
FMT_INLINE value(const void *x FMT_BUILTIN)
Definition base.h:2256
constexpr FMT_INLINE value(unsigned long long x FMT_BUILTIN)
Definition base.h:2212
FMT_CONSTEXPR20 FMT_INLINE value(T &x)
Definition base.h:2283
FMT_CONSTEXPR FMT_INLINE value(char_type *x FMT_BUILTIN)
Definition base.h:2238
FMT_CONSTEXPR value(const T &x FMT_BUILTIN)
Definition base.h:2248
float float_value
Definition base.h:2192
constexpr FMT_INLINE value()
Definition base.h:2201
constexpr FMT_INLINE value(float x FMT_BUILTIN)
Definition base.h:2234
int128_opt int128_value
Definition base.h:2188
FMT_CONSTEXPR FMT_INLINE value(long x FMT_BUILTIN)
Definition base.h:2208
constexpr FMT_INLINE value(unsigned char x FMT_BUILTIN)
Definition base.h:2203
FMT_INLINE value(volatile void *x FMT_BUILTIN)
Definition base.h:2257
custom_value< Context > custom
Definition base.h:2197
FMT_ALWAYS_INLINE value(const named_arg_info< char_type > *args, size_t size)
Definition base.h:2285
constexpr FMT_INLINE value(ubitint< N > x FMT_BUILTIN)
Definition base.h:2223
named_arg_value< char_type > named_args
Definition base.h:2198
constexpr FMT_INLINE value(signed char x)
Definition base.h:2202
constexpr FMT_INLINE value(unsigned x FMT_BUILTIN)
Definition base.h:2207
FMT_INLINE value(int128_opt x FMT_BUILTIN)
Definition base.h:2214
constexpr FMT_INLINE value(long long x FMT_BUILTIN)
Definition base.h:2211
char_type char_value
Definition base.h:2191
string_value< char_type > string
Definition base.h:2196
typename Context::char_type char_type
Definition base.h:2180
monostate no_value
Definition base.h:2183
FMT_INLINE value(void *x FMT_BUILTIN)
Definition base.h:2255
constexpr FMT_INLINE value(unsigned short x FMT_BUILTIN)
Definition base.h:2205
const void * pointer
Definition base.h:2195
value(const T &x)
Definition base.h:2274
unsigned uint_value
Definition base.h:2185
FMT_INLINE value(nullptr_t)
Definition base.h:2261
constexpr FMT_INLINE value(bool x FMT_BUILTIN)
Definition base.h:2216
long long long_long_value
Definition base.h:2186
constexpr FMT_INLINE value(signed short x)
Definition base.h:2204
auto get() const -> Locale
Definition format-inl.h:62
Parsing context consisting of a format string range being parsed and an argument counter for automati...
Definition base.h:857
const Char * iterator
Definition base.h:868
constexpr auto begin() const noexcept -> iterator
Returns an iterator to the beginning of the format string range being parsed.
Definition base.h:876
FMT_CONSTEXPR void check_arg_id(basic_string_view< Char >)
Definition base.h:908
FMT_CONSTEXPR void check_dynamic_spec(int arg_id)
Definition base.h:2474
FMT_CONSTEXPR void check_arg_id(int id)
Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing.
Definition base.h:900
FMT_CONSTEXPR auto next_arg_id() -> int
Definition base.h:888
constexpr parse_context(basic_string_view< Char > fmt, int next_arg_id=0)
Definition base.h:870
FMT_CONSTEXPR void advance_to(iterator it)
Advances the begin iterator to it.
Definition base.h:882
Char char_type
Definition base.h:867
constexpr auto end() const noexcept -> iterator
Returns an iterator past the end of the format string range being parsed.
Definition base.h:879
auto invoke_back_inserter() -> decltype(back_inserter(std::declval< Container & >()))
Converts a string literal into a format string that will be parsed at compile time and converted into...
Definition printf.h:50
@ bool_set
Definition base.h:1050
@ uint_set
Definition base.h:1048
@ pointer_set
Definition base.h:1056
@ float_set
Definition base.h:1052
@ cstring_set
Definition base.h:1055
@ char_set
Definition base.h:1051
@ sint_set
Definition base.h:1046
@ string_set
Definition base.h:1054
FMT_CONSTEXPR auto code_point_length(const Char *begin) -> int
Definition base.h:1313
auto get_iterator(Buf &buf, OutputIt) -> decltype(buf.out())
Definition base.h:2141
FMT_CONSTEXPR auto compare(const Char *s1, const Char *s2, size_t n) -> int
Definition base.h:474
conditional_t< long_short, int, long long > long_type
Definition base.h:1136
FMT_CONSTEXPR auto is_locking() -> bool
Definition base.h:2443
constexpr auto to_ascii(Char c) -> char
Definition base.h:1307
type_constant< mapped_t< T, Char >, Char > mapped_type_constant
Definition base.h:1244
FMT_CONSTEXPR auto parse_dynamic_spec(const Char *begin, const Char *end, int &value, arg_ref< Char > &ref, parse_context< Char > &ctx) -> parse_dynamic_spec_result< Char >
Definition base.h:1410
@ is_unpacked_bit
Definition base.h:2330
FMT_CONSTEXPR void ignore_unused(const T &...)
Definition base.h:361
constexpr auto count_static_named_args() -> int
Definition base.h:1089
void vprint_mojibake(FILE *, string_view, const format_args &, bool)
Definition base.h:2457
FMT_CONSTEXPR auto parse_precision(const Char *begin, const Char *end, format_specs &specs, arg_ref< Char > &precision_ref, parse_context< Char > &ctx) -> const Char *
Definition base.h:1452
void init_named_arg(named_arg_info< Char > *, int &arg_index, int &, const T &)
Definition base.h:1109
uint128_opt
Definition base.h:414
constexpr auto is_integral_type(type t) -> bool
Definition base.h:1032
@ long_short
Definition base.h:1135
constexpr auto count_named_args() -> int
Definition base.h:1086
FMT_CONSTEXPR auto parse_nonnegative_int(const Char *&begin, const Char *end, int error_value) noexcept -> int
Definition base.h:1322
@ zero
Definition chrono.h:611
constexpr auto digits10() noexcept -> int
Definition format.h:1153
FMT_CONSTEXPR void init_static_named_arg(named_arg_info< Char > *, int &arg_index, int &)
Definition base.h:1121
FMT_CONSTEXPR auto invoke_parse(parse_context< Char > &ctx) -> const Char *
Definition base.h:1694
conditional_t< long_short, unsigned, unsigned long long > ulong_type
Definition base.h:1137
int128_opt
Definition base.h:413
FMT_CONSTEXPR auto to_unsigned(Int value) -> make_unsigned_t< Int >
Definition base.h:439
auto has_formatter_impl(T *p, buffered_context< Char > *ctx=nullptr) -> decltype(formatter< U, Char >().format(*p, *ctx), std::true_type())
constexpr auto is_name_start(Char c) -> bool
Definition base.h:1353
constexpr Char string_literal< Char, C... >::value[sizeof...(C)]
Definition format.h:275
constexpr auto in(type t, int set) -> bool
Definition base.h:1040
FMT_CONSTEXPR auto check_char_specs(const format_specs &specs) -> bool
Definition base.h:1676
FMT_CONSTEXPR void check_for_duplicate(named_arg_info< Char > *named_args, int named_arg_index, basic_string_view< Char > arg_name)
Definition base.h:1100
auto map(int128_opt) -> monostate
Definition base.h:416
@ max_packed_args
Definition base.h:2329
constexpr auto narrow(T *) -> char *
Definition base.h:468
@ use_utf8
Definition base.h:459
constexpr auto is_constant_evaluated(bool default_value=false) noexcept -> bool
Definition base.h:363
@ is_utf8_enabled
Definition base.h:458
constexpr auto is_arithmetic_type(type t) -> bool
Definition base.h:1035
FMT_ALWAYS_INLINE constexpr auto const_check(T val) -> T
Definition base.h:380
FMT_CONSTEXPR void parse_format_string(basic_string_view< Char > fmt, Handler &&handler)
Definition base.h:1656
FMT_CONSTEXPR auto parse_width(const Char *begin, const Char *end, format_specs &specs, arg_ref< Char > &width_ref, parse_context< Char > &ctx) -> const Char *
Definition base.h:1443
FMT_CONSTEXPR20 auto copy(InputIt begin, InputIt end, OutputIt out) -> OutputIt
Definition base.h:2083
FMT_FUNC void vformat_to(buffer< char > &buf, string_view fmt, format_args args, locale_ref loc)
Definition format-inl.h:1451
decltype(detail::type_mapper< Char >::map(std::declval< T & >())) mapped_t
Definition base.h:1240
FMT_CONSTEXPR auto parse_align(const Char *begin, const Char *end, format_specs &specs) -> const Char *
Definition format.h:2312
bool_constant<(std::is_class< T >::value||std::is_enum< T >::value|| std::is_union< T >::value||std::is_array< T >::value) && !has_to_string_view< T >::value &&!is_named_arg< T >::value && !use_format_as< T >::value &&!use_format_as_member< U >::value > use_formatter
Definition base.h:1163
constexpr auto set(type rhs) -> int
Definition base.h:1039
remove_cvref_t< decltype(format_as(std::declval< const T & >()))> format_as_result
Definition base.h:1140
@ packed_arg_bits
Definition base.h:2327
typename V::value_type char_t
String's character (code unit) type. detail:: is intentional to prevent ADL.
Definition base.h:983
constexpr auto to_string_view(const Char *s) -> basic_string_view< Char >
Definition base.h:958
FMT_CONSTEXPR auto parse_arg_id(const Char *begin, const Char *end, Handler &&handler) -> const Char *
Definition base.h:1358
state
Definition base.h:1467
@ sign
Definition base.h:1467
@ hash
Definition base.h:1467
@ zero
Definition base.h:1467
@ precision
Definition base.h:1467
@ start
Definition base.h:1467
@ width
Definition base.h:1467
@ align
Definition base.h:1467
@ locale
Definition base.h:1467
conditional_t< NUM_ARGS<=max_packed_args, value< Context >, basic_format_arg< Context > > arg_t
Definition base.h:2361
type
Definition base.h:985
@ int_type
Definition base.h:988
@ custom_type
Definition base.h:1005
@ uint_type
Definition base.h:989
@ uint128_type
Definition base.h:993
@ string_type
Definition base.h:1003
@ bool_type
Definition base.h:994
@ none_type
Definition base.h:986
@ last_numeric_type
Definition base.h:1001
@ long_double_type
Definition base.h:1000
@ cstring_type
Definition base.h:1002
@ ulong_long_type
Definition base.h:991
@ double_type
Definition base.h:999
@ char_type
Definition base.h:995
@ long_long_type
Definition base.h:990
@ pointer_type
Definition base.h:1004
@ last_integer_type
Definition base.h:996
@ int128_type
Definition base.h:992
@ float_type
Definition base.h:998
auto get_buffer(OutputIt out) -> iterator_buffer< OutputIt, T >
Definition base.h:2131
FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char *begin, const Char *end, Handler &&handler) -> const Char *
Definition base.h:1609
constexpr auto count() -> int
Definition base.h:1081
constexpr auto has_formatter() -> bool
Definition base.h:1175
constexpr auto make_descriptor() -> unsigned long long
Definition base.h:2355
@ has_named_args_bit
Definition base.h:2331
remove_cvref_t< decltype(formatter< T >::format_as(std::declval< const T & >()))> format_as_member_result
Definition base.h:1143
conditional_t< sizeof(Char)==1, unsigned char, unsigned > unsigned_char
Definition base.h:445
constexpr auto encode_types() -> unsigned long long
Definition base.h:2344
FMT_NORETURN FMT_API void assert_fail(const char *file, int line, const char *message)
std::integral_constant< type, Context::builtin_types||TYPE==type::int_type ? TYPE :type::custom_type > stored_type_constant
Definition base.h:1249
FMT_CONSTEXPR20 auto get_container(OutputIt it) -> typename OutputIt::container_type &
Definition base.h:502
FMT_CONSTEXPR auto parse_format_specs(const Char *begin, const Char *end, dynamic_format_specs< Char > &specs, parse_context< Char > &ctx, type arg_type) -> const Char *
Definition base.h:1471
Definition StringMap.hpp:773
@ map
Definition ranges.h:31
constexpr buffer_traits(size_t)
Definition base.h:1884
constexpr auto limit(size_t size) const -> size_t
Definition base.h:1886
constexpr auto count() const -> size_t
Definition base.h:1885
void(* format)(void *arg, parse_context< char_type > &parse_ctx, Context &ctx)
Definition base.h:2161
typename Context::char_type char_type
Definition base.h:2159
void * value
Definition base.h:2160
arg_ref< Char > & ref
Definition base.h:1387
FMT_CONSTEXPR void on_index(int id)
Definition base.h:1390
FMT_CONSTEXPR void on_name(basic_string_view< Char > id)
Definition base.h:1396
arg_id_kind & kind
Definition base.h:1388
parse_context< Char > & ctx
Definition base.h:1386
Definition format-inl.h:52
int id
Definition base.h:1095
const Char * name
Definition base.h:1094
FMT_CONSTEXPR FMT_ALWAYS_INLINE named_arg_store(T &... values)
Definition base.h:2373
named_arg_store(named_arg_store &&rhs)
Definition base.h:2380
named_arg_store(const named_arg_store &rhs)=delete
arg_t< Context, NUM_ARGS > args[1u+NUM_ARGS]
Definition base.h:2368
named_arg_info< typename Context::char_type > named_args[static_cast< size_t >(NUM_NAMED_ARGS)]
Definition base.h:2370
auto operator=(const named_arg_store &rhs) -> named_arg_store &=delete
auto operator=(named_arg_store &&rhs) -> named_arg_store &=delete
const named_arg_info< Char > * data
Definition base.h:2165
size_t size
Definition base.h:2166
const T & value
Definition base.h:1075
const Char * name
Definition base.h:1074
named_arg(const Char *n, const T &v)
Definition base.h:1077
const Char * end
Definition base.h:1404
arg_id_kind kind
Definition base.h:1405
const Char * data
Definition base.h:2153
auto str() const -> basic_string_view< Char >
Definition base.h:2155
size_t size
Definition base.h:2154
static auto map(signed char) -> int
static auto map(unsigned short) -> unsigned
static auto map(Char *) -> const Char *
static auto map(const volatile void *) -> const void *
static auto map(unsigned char) -> unsigned
static auto map(const T &) -> conditional_t< std::is_same< C, Char >::value, basic_string_view< C >, void >
static auto map(const void *) -> const void *
static auto map(long long) -> long long
static auto map(T) -> conditional_t< std::is_same< T, char >::value||std::is_same< T, Char >::value, Char, void >
static auto map(const T &named_arg) -> decltype(map(named_arg.value))
static auto map(unsigned long long) -> unsigned long long
static auto map(void *) -> const void *
static auto map(float) -> float
static auto map(bool) -> bool
static auto map(T &) -> conditional_t< has_formatter< T, Char >(), T &, void >
static auto map(long double) -> long double
static auto map(unsigned) -> unsigned
static auto map(unsigned long) -> ulong_type
static auto map(nullptr_t) -> const void *
static auto map(double) -> double
static auto map(const T &) -> void
static auto map(const T &x) -> decltype(map(formatter< T >::format_as(x)))
static auto map(short) -> int
static auto map(int) -> int
static auto map(const T &x) -> decltype(map(format_as(x)))
static auto map(int128_opt) -> int128_opt
static auto map(const Char *) -> const Char *
static auto map(volatile void *) -> const void *
static auto map(uint128_opt) -> uint128_opt
static auto map(bitint< N >) -> conditional_t< N<=64, long long, void >
static auto map(ubitint< N >) -> conditional_t< N<=64, unsigned long long, void >
static auto map(long) -> long_type
A compile-time format string.
Definition base.h:2737
string_view str
Definition base.h:2749
auto get() const -> string_view
Definition base.h:2791
fstring(runtime_format_string<> fmt)
Definition base.h:2787
FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring(const char(&s)[N])
Definition base.h:2754
fstring t
Definition base.h:2750
FMT_ALWAYS_INLINE fstring(const S &)
Definition base.h:2781
FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring(const S &s)
Definition base.h:2768
constexpr monostate()
Definition base.h:335
FMT_CONSTEXPR arg_ref(int idx=0)
Definition base.h:1290
int index
Definition base.h:1293
basic_string_view< Char > name
Definition base.h:1294
FMT_CONSTEXPR arg_ref(basic_string_view< Char > n)
Definition base.h:1291