diff --git a/include/nlohmann/detail/input/input_adapters.hpp b/include/nlohmann/detail/input/input_adapters.hpp index 03bee9eac..a3bea33fa 100644 --- a/include/nlohmann/detail/input/input_adapters.hpp +++ b/include/nlohmann/detail/input/input_adapters.hpp @@ -155,8 +155,9 @@ class input_stream_adapter // General-purpose iterator-based adapter. It might not be as fast as // theoretically possible for some containers, but it is extremely versatile. -// SentinelType defaults to IteratorType for backward compatibility, but may -// be a different type (e.g., a C++20 sentinel or counted_iterator). +// SentinelType defaults to IteratorType for backward compatibility, but may be +// a different type, e.g. a C++20 sentinel such as std::default_sentinel_t when +// IteratorType is a std::counted_iterator. template class iterator_input_adapter { diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index d687e382d..f60f608b1 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -7158,8 +7158,9 @@ class input_stream_adapter // General-purpose iterator-based adapter. It might not be as fast as // theoretically possible for some containers, but it is extremely versatile. -// SentinelType defaults to IteratorType for backward compatibility, but may -// be a different type (e.g., a C++20 sentinel or counted_iterator). +// SentinelType defaults to IteratorType for backward compatibility, but may be +// a different type, e.g. a C++20 sentinel such as std::default_sentinel_t when +// IteratorType is a std::counted_iterator. template class iterator_input_adapter {