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

Function parse_tail

include/fmt/compile.h:275–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273template <typename Args, size_t POS, int ID, bool DYNAMIC_NAMES, typename T,
274 typename S>
275constexpr auto parse_tail(T head, S fmt) {
276 if constexpr (POS != basic_string_view<typename S::char_type>(fmt).size()) {
277 constexpr auto tail =
278 compile_format_string<Args, POS, ID, DYNAMIC_NAMES>(fmt);
279 if constexpr (std::is_same<remove_cvref_t<decltype(tail)>,
280 unknown_format>())
281 return tail;
282 else
283 return make_concat(head, tail);
284 } else {
285 return head;
286 }
287}
288
289template <typename T, typename Char> struct parse_specs_result {
290 formatter<T, Char> fmt;

Callers

nothing calls this directly

Calls 2

make_concatFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected