basic_parse_context -> basic_format_parse_context per standard and document
This commit is contained in:
+3
-2
@@ -113,8 +113,7 @@ template and implement ``parse`` and ``format`` methods::
|
||||
namespace fmt {
|
||||
template <>
|
||||
struct formatter<point> {
|
||||
template <typename ParseContext>
|
||||
constexpr auto parse(ParseContext &ctx) { return ctx.begin(); }
|
||||
constexpr auto parse(format_parse_context &ctx) { return ctx.begin(); }
|
||||
|
||||
template <typename FormatContext>
|
||||
auto format(const point &p, FormatContext &ctx) {
|
||||
@@ -183,6 +182,8 @@ You can also write a formatter for a hierarchy of classes::
|
||||
fmt::print("{}", a); // prints "B"
|
||||
}
|
||||
|
||||
.. doxygenclass: fmt::basic_format_parse_context
|
||||
|
||||
Output Iterator Support
|
||||
-----------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user