Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
1010b7f1
Commit
1010b7f1
authored
Jul 04, 2022
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs
parent
2ac51fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/api.rst
doc/api.rst
+4
-4
No files found.
doc/api.rst
View file @
1010b7f1
...
@@ -308,10 +308,10 @@ If a type provides both a ``formatter`` specialization and an implicit
...
@@ -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 to a formattable type, the specialization takes precedence over the
conversion.
conversion.
For
scoped enums (enum classes) {fmt} also provides the ``format_as`` extension
For
enums {fmt} also provides the ``format_as`` extension API. To format an enum
API. To format an enum via this API define ``format_as`` that takes this enum
via this API define ``format_as`` that takes this enum and converts it to the
and converts it to the underlying type. ``format_as`` should be defined in
the
underlying type. ``format_as`` should be defined in the same namespace as
the
same namespace as the
enum.
enum.
Example (https://godbolt.org/z/r7vvGE1v7)::
Example (https://godbolt.org/z/r7vvGE1v7)::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment