Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.01 KB

File metadata and controls

51 lines (32 loc) · 1.01 KB

io

The IO library allows formatting strings and outputting text to the console

Functions

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
  • args: Values to use in the formatting
fn print(str fmt, auto ... args);

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
  • args: Values to use in the formatting
  • return: The formatted string
fn format(str fmt, auto ... args);

std::error

Aborts evaluation of the code immediately and prints a error message to the console

  • message: The message to print
fn error(str message);

std::warning

Prints a warning message to the console

  • message: The message to print
fn warning(str message);