Skip to content

Commit e9134bd

Browse files
committed
[alg.random.sample] reword and add cross-reference
MeowIterator is not a named requirement, so reworded as "shall satisfy the requirements of a meow iterator", consistent with the wording in [algorithms.general]/5. Added cross-references to [meow.iterators], and to [iterator.requirements.general] for "writable". Partially addresses #697 and #696.
1 parent e138cdd commit e9134bd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/algorithms.tex

+7-7
Original file line numberDiff line numberDiff line change
@@ -2983,14 +2983,14 @@
29832983
\requires
29842984
\begin{itemize}
29852985
\item
2986-
\tcode{PopulationIterator} shall meet the requirements of an \tcode{InputIterator} type.
2986+
\tcode{PopulationIterator} shall satisfy the requirements of an input iterator~(\ref{input.iterators}).
29872987
\item
2988-
\tcode{SampleIterator} shall meet the requirements of an \tcode{OutputIterator} type.
2988+
\tcode{SampleIterator} shall satisfy the requirements of an output iterator~(\ref{output.iterators}).
29892989
\item
2990-
\tcode{SampleIterator} shall meet the additional requirements of a \tcode{RandomAccessIterator} type
2991-
unless \tcode{PopulationIterator} meets the additional requirements of a \tcode{ForwardIterator} type.
2990+
\tcode{SampleIterator} shall satisfy the additional requirements of a random access iterator~(\ref{random.access.iterators}).
2991+
unless \tcode{PopulationIterator} satisfies the additional requirements of a forward iterator~(\ref{forward.iterators}).
29922992
\item
2993-
\tcode{PopulationIterator}'s value type shall be writable to \tcode{out}.
2993+
\tcode{PopulationIterator}'s value type shall be writable~(\ref{iterator.requirements.general}) to \tcode{out}.
29942994
\item
29952995
\tcode{Distance} shall be an integer type.
29962996
\item
@@ -3022,8 +3022,8 @@
30223022
\remarks
30233023
\begin{itemize}
30243024
\item
3025-
Stable if and only if \tcode{PopulationIterator} meets the
3026-
requirements of a \tcode{ForwardIterator} type.
3025+
Stable if and only if \tcode{PopulationIterator} satisfies the
3026+
requirements of a forward iterator.
30273027
\item
30283028
To the extent that the implementation of this function makes use of
30293029
random numbers, the object \tcode{g} shall serve as the

0 commit comments

Comments
 (0)