mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Document fstring
This commit is contained in:
18
doc/api.md
18
doc/api.md
@ -269,18 +269,16 @@ that support C++20 `consteval`. On older compilers you can use the
|
|||||||
|
|
||||||
Unused arguments are allowed as in Python's `str.format` and ordinary functions.
|
Unused arguments are allowed as in Python's `str.format` and ordinary functions.
|
||||||
|
|
||||||
::: basic_format_string
|
See [Type Erasure](#type-erasure) for an example of how to enable compile-time
|
||||||
|
checks in your own functions with `fmt::format_string` while avoiding template
|
||||||
|
bloat.
|
||||||
|
|
||||||
|
::: fstring
|
||||||
|
|
||||||
::: format_string
|
::: format_string
|
||||||
|
|
||||||
::: runtime(string_view)
|
::: runtime(string_view)
|
||||||
|
|
||||||
### Named Arguments
|
|
||||||
|
|
||||||
::: arg(const Char*, const T&)
|
|
||||||
|
|
||||||
Named arguments are not supported in compile-time checks at the moment.
|
|
||||||
|
|
||||||
### Type Erasure
|
### Type Erasure
|
||||||
|
|
||||||
You can create your own formatting function with compile-time checks and
|
You can create your own formatting function with compile-time checks and
|
||||||
@ -317,6 +315,12 @@ parameterized version.
|
|||||||
|
|
||||||
::: basic_format_arg
|
::: basic_format_arg
|
||||||
|
|
||||||
|
### Named Arguments
|
||||||
|
|
||||||
|
::: arg(const Char*, const T&)
|
||||||
|
|
||||||
|
Named arguments are not supported in compile-time checks at the moment.
|
||||||
|
|
||||||
### Compatibility
|
### Compatibility
|
||||||
|
|
||||||
::: basic_string_view
|
::: basic_string_view
|
||||||
|
Reference in New Issue
Block a user