Console I/O Library
¶
#include <std/io.pat>
Functions¶
std::print(str format, auto args...)
¶
Formats and outputs a set of values to the built-in console
This function works identical to libfmt’s fmt::print()
and C++20’s std::print()
.
Please check its documentation for further informatiom
Parameter |
Description |
---|---|
|
A libfmt / C++20 std::format format string |
|
A list of arguments to be inserted into the format string |
std::print("Hello {} {}", "World", 42); // Prints "Hello World 42"
std::format(str format, auto args...) -> str
¶
Formats a set of values and returns the result as a string
This function works identical to libfmt’s fmt::format()
and C++20’s std::format()
.
Please check its documentation for further informatiom
Parameter |
Description |
---|---|
|
A libfmt / C++20 std::format format string |
|
A list of arguments to be inserted into the format string |
|
Formatted string |
return std::format("Hello {} {}", "World", 42); // Returns "Hello World 42"
std::error(str message)
1.14.0¶
Throws an error
When run, execution is aborted immediately with a given message
Parameter |
Description |
---|---|
|
Message to print |
std::warning(str message)
1.14.0¶
Throws a warning
When run, a warning is thrown with a given message
Parameter |
Description |
---|---|
|
Message to print |