std::print(
formatstring,args)
und std::println(
formatstring,args)
erzeugen Unicode-taugliche Ausgaben.
Sie nutzen die gleichen Formatierungsregeln wie die <format>-Bibliothek.
Dem Formatstring kann ein Ausgabestrom (<ostream>) vorangestellt werden.
#include <print> int main() { std::println("Hallo, C++{}", 23); }