ΒΆtemplate <
    typename OutputIt,
    typename... T,
    fmt::enable_if_t<
        (detail::is_output_iterator<OutputIt,
                                    char>::value),
        int> = 0>
inline auto format_to_n(OutputIt out,
                        size_t n,
                        format_string<T...> fmt,
                        T&&... args)
    -> format_to_n_result<OutputIt>

Description

\rstFormats ``args`` according to specifications in ``fmt``, writes up to ``n`` characters of the result to the output iterator ``out`` and returns the total (not truncated) output size and the iterator past the end of the output range. `format_to_n` does not append a terminating null character.\endrst

Declared at: third_party/fmt/include/fmt/core.h:2846

Templates

OutputIt
T
fmt::enable_if_t<(detail::is_output_iterator::value), int>

Parameters

OutputIt out
size_t n
format_string<T...> fmt
T&&... args