~/talk

The Surprising Complexity of Formatting Ranges in Cpp

Talkat CppCon 2022 · 2022-09-11..09-16· [c-and-cpp]
slides:none on file

Argument: adding range and tuple support to std::format and {fmt} exposes many concrete edge cases not solved by restating the topic. The work shows a C++23 range-formatter standardized, a retargeted_format_context pattern to do alignment into temporary buffers, a defect fix to take forwarding references so generators and filter views format, defaults (square brackets, quoted+escaped strings), and unresolved choices like tuple element delimiters and delimiter specifiers. Implementations and compiler‑explorer proofs exist and the core features compile and run.

AI-written summary · about

  1. 0:00Start
  2. 13:47Dynamic Parsing in (fmt)
  3. 16:42A formatter for optional
  4. 21:22A format-spec for Ranges
  5. 23:34Implementing formatter for Ranges
  6. 37:35Adding top-level specifiers: delimiter
  7. 46:59P2286: Formatting Ranges
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.