Skip to content

Commit

Permalink
Document fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 26, 2024
1 parent 5fa4bdd commit da24fac
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

::: 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

::: runtime(string_view)

### Named Arguments

::: arg(const Char*, const T&)

Named arguments are not supported in compile-time checks at the moment.

### Type Erasure

You can create your own formatting function with compile-time checks and
Expand Down Expand Up @@ -317,6 +315,12 @@ parameterized version.
::: basic_format_arg
### Named Arguments
::: arg(const Char*, const T&)
Named arguments are not supported in compile-time checks at the moment.
### Compatibility
::: basic_string_view
Expand Down

0 comments on commit da24fac

Please sign in to comment.