basic_parse_context -> basic_format_parse_context per standard and document

This commit is contained in:
Victor Zverovich
2019-11-05 07:13:58 +00:00
parent 0889856d61
commit ffd05e65ed
6 changed files with 61 additions and 41 deletions
+3 -2
View File
@@ -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
-----------------------