namespace std {
void vprint_nonunicode_buffered(
FILE* stream,
string_view fmt,
format_args args); // (1) C++26
}
概要
確保した文字列バッファに書式指定の出力を作ってから非Unicode出力する。
効果
- (1) : 以下と等価:
string out = vformat(fmt, args); vprint_nonunicode(stream, "{}", make_format_args(out));
バージョン
言語
- C++26
処理系
- Clang: 18 ❌
- GCC: 14 ❌
- Visual C++: 2022 Update 7 ❌
関連項目
参照
- P3107R5 Permit an efficient implementation of
std::print - P3235R3
std::printmore types faster with less memory - LWG Issue 4549.
vprint_nonunicode_bufferedignores itsstreamparameter- C++26で、
stream引数をvprint_nonunicodeに渡すよう効果が修正された(従来は無視されstdoutに出力されていた)
- C++26で、