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"