Update docs

This commit is contained in:
Victor Zverovich
2022-09-16 10:29:53 -07:00
parent cf58f64c54
commit 3178bb9a26

View File

@ -72,8 +72,8 @@ Compile-Time Format String Checks
--------------------------------- ---------------------------------
Compile-time checks are enabled by default on compilers that support C++20 Compile-time checks are enabled by default on compilers that support C++20
``consteval``. On older compilers you can use the ``FMT_STRING`` macro defined ``consteval``. On older compilers you can use the
in ``fmt/format.h`` instead. :ref:`FMT_STRING <legacy-checks>`: macro defined in ``fmt/format.h`` instead.
.. doxygenclass:: fmt::basic_format_string .. doxygenclass:: fmt::basic_format_string
:members: :members:
@ -88,8 +88,8 @@ Formatting User-Defined Types
The {fmt} library provides formatters for many standard C++ types. The {fmt} library provides formatters for many standard C++ types.
See :ref:`fmt/ranges.h <ranges-api>` for ranges and tuples including standard See :ref:`fmt/ranges.h <ranges-api>` for ranges and tuples including standard
containers such as ``std::vector``, :ref:`fmt/chrono.h <chrono-api>` for date containers such as ``std::vector``, :ref:`fmt/chrono.h <chrono-api>` for date
and time formatting and :ref:`fmt/std.h <std-api>` for path and variant and time formatting and :ref:`fmt/std.h <std-api>` for other standard library
formatting. types.
To make a user-defined type formattable, specialize the ``formatter<T>`` struct To make a user-defined type formattable, specialize the ``formatter<T>`` struct
template and implement ``parse`` and ``format`` methods:: template and implement ``parse`` and ``format`` methods::