Skip to content

Commit 4c6f1e8

Browse files
CaseyCarterjensmaurer
authored andcommitted
[string.view.synop,span.syn,span.cons] enable_/safe_range are defined in std::ranges (#3551)
1 parent c16f026 commit 4c6f1e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/containers.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10515,7 +10515,7 @@
1051510515
class span;
1051610516

1051710517
template<class ElementType, size_t Extent>
10518-
inline constexpr bool enable_safe_range<span<ElementType, Extent>> = true;
10518+
inline constexpr bool ranges::enable_safe_range<span<ElementType, Extent>> = true;
1051910519

1052010520
// \ref{span.objectrep}, views of object representation
1052110521
template<class ElementType, size_t Extent>
@@ -10788,7 +10788,7 @@
1078810788
\item \tcode{extent == dynamic_extent} is \tcode{true}.
1078910789
\item \tcode{R} satisfies \tcode{ranges::\libconcept{contiguous_range}} and
1079010790
\tcode{ranges::\libconcept{sized_range}}.
10791-
\item Either \tcode{R} satisfies \libconcept{safe_range} or
10791+
\item Either \tcode{R} satisfies \tcode{ranges::\libconcept{safe_range}} or
1079210792
\tcode{is_const_v<element_type>} is \tcode{true}.
1079310793
\item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{span}.
1079410794
\item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{array}.
@@ -10807,7 +10807,7 @@
1080710807
\item \tcode{R} models \tcode{ranges::\libconcept{contiguous_range}} and
1080810808
\tcode{ranges::\libconcept{sized_range}}.
1080910809
\item If \tcode{is_const_v<element_type>} is \tcode{false},
10810-
\tcode{R} models \libconcept{safe_range}.
10810+
\tcode{R} models \tcode{ranges::\libconcept{safe_range}}.
1081110811
\end{itemize}
1081210812

1081310813
\pnum

source/strings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3933,7 +3933,7 @@
39333933
class basic_string_view;
39343934

39353935
template<class charT, class traits>
3936-
inline constexpr bool enable_safe_range<basic_string_view<charT, traits>> = true;
3936+
inline constexpr bool ranges::enable_safe_range<basic_string_view<charT, traits>> = true;
39373937

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

0 commit comments

Comments
 (0)