io
The IO library allows formatting strings and outputting text to the console
Functions
std::print
std::print
Formats the given arguments using the format string and prints the result to the console This function uses the C++20 std::format
or libfmt's fmt::format
syntax.
fmt
: Format string or any other value that can be converted to a stringargs
: Values to use in the formatting
std::format
std::format
Formats the given arguments using the format string and returns the result as a string This function uses the C++20 std::format
or libfmt's fmt::format
syntax.
fmt
: Format string or any other value that can be converted to a stringargs
: Values to use in the formattingreturn
: The formatted string
std::error
std::error
Aborts evaluation of the code immediately and prints a error message to the console
message
: The message to print
std::warning
std::warning
Prints a warning message to the console
message
: The message to print
Last updated