mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 16:57:03 +08:00
Update docs
This commit is contained in:
parent
656228fbee
commit
8ba99c0f05
@ -586,7 +586,7 @@ and `consteval` functions. Additionally there is an experimental
|
|||||||
`FMT_STATIC_FORMAT` that allows formatting into a string of the exact
|
`FMT_STATIC_FORMAT` that allows formatting into a string of the exact
|
||||||
required size at compile time. Compile-time formatting works with built-in
|
required size at compile time. Compile-time formatting works with built-in
|
||||||
and user-defined formatters that have `constexpr` `format` methods.
|
and user-defined formatters that have `constexpr` `format` methods.
|
||||||
Example:
|
Example ([run](https://www.godbolt.org/z/3c13erEoq)):
|
||||||
|
|
||||||
template <> struct fmt::formatter<point> {
|
template <> struct fmt::formatter<point> {
|
||||||
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
|
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user