Document formatter specializations provided by base.h

This commit is contained in:
Victor Zverovich 2024-04-22 13:39:14 -07:00 committed by GitHub
parent f4b256c667
commit f30f1fd514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,15 @@ Base API
for ``char``/UTF-8 with C++20 compile-time checks. It has minimal include 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 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. 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 <syntax>` The following functions use :ref:`format string syntax <syntax>`
similar to that of Python's `str.format similar to that of Python's `str.format