std::vformat_to

Header: <format>

Format arguments held by args according to the format string fmt, and write the result to the output iterator out. If present, loc is used for locale-specific formatting.

# Declarations

template< class OutputIt >
OutputIt vformat_to( OutputIt out, std::string_view fmt, std::format_args args );

(since C++20)

template< class OutputIt >
OutputIt vformat_to( OutputIt out, std::wstring_view fmt, std::wformat_args args );

(since C++20)

template< class OutputIt >
OutputIt vformat_to( OutputIt out, const std::locale& loc,
std::string_view fmt, std::format_args args );

(since C++20)

template< class OutputIt >
OutputIt vformat_to( OutputIt out, const std::locale& loc,
std::wstring_view fmt, std::wformat_args args );

(since C++20)

# Parameters

# Return value

Iterator past the end of the output range.

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
P2216R3C++20type of args is parameterized on OutputItnot parameterized