Explain why null_terminating_iterator is used

This commit is contained in:
Victor Zverovich 2017-07-26 08:48:59 -07:00
parent 873c8451ed
commit 7bd776e7db

View File

@ -1947,7 +1947,9 @@ class null_terminating_iterator;
template <typename Char> template <typename Char>
const Char *pointer_from(null_terminating_iterator<Char> it); const Char *pointer_from(null_terminating_iterator<Char> 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 <typename Char> template <typename Char>
class null_terminating_iterator { class null_terminating_iterator {
public: public: