mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Update docs
This commit is contained in:
@ -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::
|
||||||
|
Reference in New Issue
Block a user