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

Description

\rstFormats ``args`` according to specifications in ``fmt``, writes the result to the output iterator ``out`` and returns the iterator past the end of the output range. `format_to` does not append a terminating null character. *Example**:: auto out = std::vector <char >(); fmt::format_to(std::back_inserter(out), "{}", 42);\endrst

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

Templates

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

Parameters

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