Skip to content

Commit 79d903e

Browse files
committed
LWG3102 Clarify span iterator and const_iterator behavior
1 parent c46997a commit 79d903e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/containers.tex

+6-1
Original file line numberDiff line numberDiff line change
@@ -9750,7 +9750,12 @@
97509750
the program is ill-formed.
97519751

97529752
\pnum
9753-
The iterator type for span is a random access iterator and a contiguous iterator.
9753+
The iterator types \tcode{span::iterator} and \tcode{span::const_iterator} are
9754+
random access iterators\iref{random.access.iterators},
9755+
contiguous iterators\iref{iterator.requirements.general}, and
9756+
constexpr iterators\iref{iterator.requirements.general}.
9757+
All requirements on container iterators\iref{container.requirements} apply to
9758+
\tcode{span::iterator} and \tcode{span::const_iterator} as well.
97549759

97559760
\pnum
97569761
All member functions of \tcode{span} have constant time complexity.

0 commit comments

Comments
 (0)