From 7bd776e7db41d18056a2d526efb117bd51420d7a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 26 Jul 2017 08:48:59 -0700 Subject: [PATCH] Explain why null_terminating_iterator is used --- fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 18e93199..8990d295 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1947,7 +1947,9 @@ class null_terminating_iterator; template const Char *pointer_from(null_terminating_iterator it); -// An iterator that produces a null terminator on *end. +// An iterator that produces a null terminator on *end. This simplifies parsing +// and allows comparing the performance of processing a null-terminated string +// vs string_view. template class null_terminating_iterator { public: