mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Update docs
This commit is contained in:
parent
2ac51fc448
commit
1010b7f148
@ -308,10 +308,10 @@ If a type provides both a ``formatter`` specialization and an implicit
|
||||
conversion to a formattable type, the specialization takes precedence over the
|
||||
conversion.
|
||||
|
||||
For scoped enums (enum classes) {fmt} also provides the ``format_as`` extension
|
||||
API. To format an enum via this API define ``format_as`` that takes this enum
|
||||
and converts it to the underlying type. ``format_as`` should be defined in the
|
||||
same namespace as the enum.
|
||||
For enums {fmt} also provides the ``format_as`` extension API. To format an enum
|
||||
via this API define ``format_as`` that takes this enum and converts it to the
|
||||
underlying type. ``format_as`` should be defined in the same namespace as the
|
||||
enum.
|
||||
|
||||
Example (https://godbolt.org/z/r7vvGE1v7)::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user