From f30f1fd5141dd22afdcd32fafaa1f58f10bae8fc Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 22 Apr 2024 13:39:14 -0700 Subject: [PATCH] Document formatter specializations provided by base.h --- doc/api.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/api.rst b/doc/api.rst index 0c594d9a728b..9582b312e73c 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -33,7 +33,15 @@ Base API for ``char``/UTF-8 with C++20 compile-time checks. It has minimal include dependencies for better compile times. This header is only beneficial when using {fmt} as a library (the default) and not in the header-only mode. -It also provides ``formatter`` specializations for built-in and string types. +It also provides ``formatter`` specializations for the following fundamental +and string types: + +* ``int``, ``unsigned``, ``long long``, ``unsigned long long`` +* ``float``, ``double``, ``long double`` +* ``bool`` +* ``char`` +* ``const char*``, ``fmt::string_view`` +* ``const void*`` The following functions use :ref:`format string syntax ` similar to that of Python's `str.format