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

Function write_padding

include/fmt/chrono.h:617–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615
616template <typename OutputIt>
617auto write_padding(OutputIt out, pad_type pad, int width) -> OutputIt {
618 if (pad == pad_type::none) return out;
619 return detail::fill_n(out, width, pad == pad_type::space ? ' ' : '0');
620}
621
622template <typename OutputIt>
623auto write_padding(OutputIt out, pad_type pad) -> OutputIt {

Callers 5

write2Method · 0.85
write_year_extendedMethod · 0.85
on_day_of_yearMethod · 0.85
writeMethod · 0.85
on_secondMethod · 0.85

Calls 1

fill_nFunction · 0.85

Tested by

no test coverage detected