MCPcopy Create free account
hub / github.com/fmtlib/fmt / invoke_parse

Function invoke_parse

include/fmt/base.h:1667–1674  ·  view source on GitHub ↗

Suppress an ld warning on macOS (#3769).

Source from the content-addressed store, hash-verified

1665template <typename T, typename Char>
1666FMT_VISIBILITY("hidden") // Suppress an ld warning on macOS (#3769).
1667FMT_CONSTEXPR auto invoke_parse(parse_context<Char>& ctx) -> const Char* {
1668 using mapped_type = remove_cvref_t<mapped_t<T, Char>>;
1669 constexpr bool formattable =
1670 std::is_constructible<formatter<mapped_type, Char>>::value;
1671 if (!formattable) return ctx.begin(); // Error is reported in the value ctor.
1672 using formatted_type = conditional_t<formattable, mapped_type, int>;
1673 return formatter<formatted_type, Char>().parse(ctx);
1674}
1675
1676template <typename... T> struct arg_pack {};
1677

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected