std::vprint_unicode(std::ostream)

Header: <ostream>

Format args according to the format string fmt, and writes the result to the output stream os. Behaves as FormattedOutputFunction of os, except that some details of error reporting differ.

# Declarations

void vprint_unicode( std::ostream& os,
std::string_view fmt, std::format_args args );

(since C++23)

# Parameters

# Notes

If invoking the native Unicode API requires transcoding, the invalid code units are substituted with U+FFFD REPLACEMENT CHARACTER (see “The Unicode Standard - Core Specification”, Chapter 3.9).

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 4044C++23the native Unicode API was always used if theterminal referred to by os can display Unicodeonly used if the terminal can only usethe native Unicode API to display Unicode

# See also