From a5a7e3a2614347b32990160753f55758700190e7 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 4 Feb 2022 15:42:22 -0800 Subject: [PATCH] Update docs --- doc/api.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api.rst b/doc/api.rst index 07aea2c2..cd9eeb4a 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -507,6 +507,8 @@ user-defined types that have an overloaded insertion operator (``operator<<``):: } }; + template <> struct fmt::formatter : ostream_formatter {}; + std::string s = fmt::format("The date is {}", date(2012, 12, 9)); // s == "The date is 2012-12-9"