Skip to content

[string.view.synop,span.syn,span.cons] (enable_)?safe_range are defin… #3551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10515,7 +10515,7 @@
class span;

template<class ElementType, size_t Extent>
inline constexpr bool enable_safe_range<span<ElementType, Extent>> = true;
inline constexpr bool ranges::enable_safe_range<span<ElementType, Extent>> = true;

// \ref{span.objectrep}, views of object representation
template<class ElementType, size_t Extent>
Expand Down Expand Up @@ -10788,7 +10788,7 @@
\item \tcode{extent == dynamic_extent} is \tcode{true}.
\item \tcode{R} satisfies \tcode{ranges::\libconcept{contiguous_range}} and
\tcode{ranges::\libconcept{sized_range}}.
\item Either \tcode{R} satisfies \libconcept{safe_range} or
\item Either \tcode{R} satisfies \tcode{ranges::\libconcept{safe_range}} or
\tcode{is_const_v<element_type>} is \tcode{true}.
\item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{span}.
\item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{array}.
Expand All @@ -10807,7 +10807,7 @@
\item \tcode{R} models \tcode{ranges::\libconcept{contiguous_range}} and
\tcode{ranges::\libconcept{sized_range}}.
\item If \tcode{is_const_v<element_type>} is \tcode{false},
\tcode{R} models \libconcept{safe_range}.
\tcode{R} models \tcode{ranges::\libconcept{safe_range}}.
\end{itemize}

\pnum
Expand Down
2 changes: 1 addition & 1 deletion source/strings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,7 @@
class basic_string_view;

template<class charT, class traits>
inline constexpr bool enable_safe_range<basic_string_view<charT, traits>> = true;
inline constexpr bool ranges::enable_safe_range<basic_string_view<charT, traits>> = true;

// \ref{string.view.comparison}, non-member comparison functions
template<class charT, class traits>
Expand Down