File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -824,9 +824,7 @@ <h3 id="formatting-user-defined-types">Formatting User-Defined Types</h3>
824824containers such as < code > std::vector</ code > , < a href ="#chrono-api "> < code > fmt/chrono.h</ code > </ a > for date and
825825time formatting and < a href ="#std-api "> < code > fmt/std.h</ code > </ a > for other standard library types.</ p >
826826< p > There are two ways to make a user-defined type formattable: providing a
827- < code > format_as</ code > function or specializing the < code > formatter</ code > struct template.
828- Formatting of non-void pointer types is intentionally disallowed and they
829- cannot be made formattable via either extension API.</ p >
827+ < code > format_as</ code > function or specializing the < code > formatter</ code > struct template.</ p >
830828< p > Use < code > format_as</ code > if you want to make your type formattable as some other
831829type with the same format specifiers. The < code > format_as</ code > function should
832830take an object of your type and return an object of a formattable type.
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments