Section: 22.214.171.124.1 [span.overview] Status: C++20 Submitter: Stephan T. Lavavej Opened: 2018-04-12 Last modified: 2021-02-25 10:48:01 UTC
View other active issues in [span.overview].
View all other issues in [span.overview].
View all issues with C++20 status.
There are multiple issues with how span specifies its iterators:
const_iterator isn't mentioned.
The relationship between iterator and const_iterator isn't specified. (span isn't a container, so it doesn't receive this automatically.)
The iterators should be specified to be constexpr.
By imitating 126.96.36.199 [string.view.iterators]/3 "All requirements on container iterators ([container.requirements]) apply to basic_string_view::const_iterator as well.", we can specify that iterator is convertible to const_iterator.
[ 2018-04-23 Moved to Tentatively Ready after 6 positive votes on c++std-lib. ]
[2018-06 Rapperswil: Adopted]
This wording is relative to N4741.
Edit 188.8.131.52.1 [span.overview] as indicated:
-4- The iterator type
for span is a random access iterator and a contiguous iterator.