Format type‐erased args per fmt into a buffer and write to stream.

Synopsis

Declared in <bslfmt_print_imp.h>

void
vprint_nonunicode_buffered(
    FILE* stream,
    std::string_view fmt,
    std::format_args args);

Description

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt to a temporary buffer, and write the resulting buffer to the specified stream. In the event of formatting error throw the exception format_error, in the event of I/O error throw the exception system_error, on allocation failure throw bad_alloc. The behavior is undefined unless stream is a valid pointer to an output C stream.

Parameters

Name

Description

stream

output C stream

fmt

format string

args

type‐erased format arguments

Created with MrDocs