MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / fill

Function fill

extlibs/fmt/include/fmt/format.h:1402–1407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1400
1401template <typename OutputIt, typename Char>
1402FMT_NOINLINE OutputIt fill(OutputIt it, size_t n, const fill_t<Char>& fill) {
1403 auto fill_size = fill.size();
1404 if (fill_size == 1) return std::fill_n(it, n, fill[0]);
1405 for (size_t i = 0; i < n; ++i) it = std::copy_n(fill.data(), fill_size, it);
1406 return it;
1407}
1408
1409// This template provides operations for formatting and writing data into a
1410// character range.

Callers 1

write_paddedMethod · 0.85

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected