mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-08 02:28:15 +00:00
Explain why null_terminating_iterator is used
This commit is contained in:
parent
873c8451ed
commit
7bd776e7db
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user