From 5f62954864bac80a94e18b31629faed11bc33a44 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 12 Jul 2020 09:55:24 -0700 Subject: [PATCH] Update README.rst --- README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.rst b/README.rst index 9f5e5433..5b358426 100644 --- a/README.rst +++ b/README.rst @@ -132,6 +132,19 @@ Check a format string at compile time: This gives a compile-time error because ``d`` is an invalid format specifier for a string. +Write a file from a single thread: + +.. code:: c++ + + #include + + int main() { + auto out = fmt::output_file("guide.txt"); + out.print("Don't {}", "Panic"); + } + +This is up to 6x faster than using ``printf``. + Create your own functions similar to `format `_ and `print `_