MCPcopy Create free account
hub / github.com/cppfastio/fast_io / fill

Function fill

include/fast_io_core_impl/freestanding/algorithm.h:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94template <::std::input_iterator input_iter, ::std::input_or_output_iterator output_iter>
95inline constexpr output_iter copy_n(input_iter first, ::std::size_t count, output_iter result)
96{
97 using input_value_type = ::std::iter_value_t<input_iter>;
98 using output_value_type = ::std::iter_value_t<output_iter>;
99 for (::std::size_t i{}; i != count; ++i)
100 {
101 if constexpr (sizeof(input_value_type) == 1 &&
102 (::std::same_as<input_value_type, ::std::byte>) && (::std::integral<output_value_type>))
103 {
104 *result = static_cast<output_value_type>(*first);
105 }

Callers 1

my_fillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected