Update README.rst

This commit is contained in:
Victor Zverovich 2020-07-08 18:17:26 -07:00 committed by GitHub
parent c1429651eb
commit c4ad94ce26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,21 @@ Output::
Default format: 42s 100ms
strftime-like format: 03:15:30
Print a container:
.. code:: c++
#include <fmt/ranges.h>
int main() {
std::vector<int> v = {1, 2, 3};
fmt::print("{}\n", v);
}
Output::
{1, 2, 3}
Check a format string at compile time:
.. code:: c++