From c4ad94ce26731a0e78c93f9df4bff90e305ee4c0 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 8 Jul 2020 18:17:26 -0700 Subject: [PATCH] Update README.rst --- README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.rst b/README.rst index 13b5337a..03317e38 100644 --- a/README.rst +++ b/README.rst @@ -107,6 +107,21 @@ Output:: Default format: 42s 100ms strftime-like format: 03:15:30 +Print a container: + +.. code:: c++ + + #include + + int main() { + std::vector v = {1, 2, 3}; + fmt::print("{}\n", v); + } + +Output:: + + {1, 2, 3} + Check a format string at compile time: .. code:: c++