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

Function format

include/fmt/compile.h:475–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473 typename Char = typename CompiledFormat::char_type,
474 FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>
475FMT_INLINE FMT_CONSTEXPR_STRING auto format(const CompiledFormat& cf,
476 const T&... args)
477 -> std::basic_string<Char> {
478 auto s = std::basic_string<Char>();
479 cf.format(std::back_inserter(s), args...);
480 return s;
481}
482
483template <typename OutputIt, typename CompiledFormat, typename... T,
484 FMT_ENABLE_IF(detail::is_compiled_format<CompiledFormat>::value)>

Callers

nothing calls this directly

Calls 4

firstFunction · 0.85
to_stringFunction · 0.85
formatMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected