Commit 86446541 authored by Alex's avatar Alex Committed by Victor Zverovich

Docs: add comment about empty format context range

parent ba50c19e
...@@ -209,6 +209,10 @@ template and implement ``parse`` and ``format`` methods:: ...@@ -209,6 +209,10 @@ template and implement ``parse`` and ``format`` methods::
// parse specifiers until '}' or the end of the range. In this example // parse specifiers until '}' or the end of the range. In this example
// the formatter should parse the 'f' specifier and return an iterator // the formatter should parse the 'f' specifier and return an iterator
// pointing to '}'. // pointing to '}'.
// Please also note that this character range may be empty, in case of
// the "{}" format string, so therefore you should check ctx.begin()
// for equality with ctx.end().
// Parse the presentation format and store it in the formatter: // Parse the presentation format and store it in the formatter:
auto it = ctx.begin(), end = ctx.end(); auto it = ctx.begin(), end = ctx.end();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment