|
10513 | 10513 | template<class ElementType, size_t Extent = dynamic_extent>
|
10514 | 10514 | class span;
|
10515 | 10515 |
|
| 10516 | + template<class ElementType, size_t Extent> |
| 10517 | + inline constexpr bool enable_safe_range<span<ElementType, Extent>> = true; |
| 10518 | + |
10516 | 10519 | // \ref{span.objectrep}, views of object representation
|
10517 | 10520 | template<class ElementType, size_t Extent>
|
10518 | 10521 | span<const byte, Extent == dynamic_extent ? dynamic_extent : sizeof(ElementType) * Extent>
|
|
10625 | 10628 | constexpr const_reverse_iterator crbegin() const noexcept;
|
10626 | 10629 | constexpr const_reverse_iterator crend() const noexcept;
|
10627 | 10630 |
|
10628 |
| - friend constexpr iterator begin(span s) noexcept { return s.begin(); } |
10629 |
| - friend constexpr iterator end(span s) noexcept { return s.end(); } |
10630 |
| - |
10631 | 10631 | private:
|
10632 | 10632 | pointer data_; // \expos
|
10633 | 10633 | size_type size_; // \expos
|
|
10786 | 10786 | \item \tcode{extent == dynamic_extent} is \tcode{true}.
|
10787 | 10787 | \item \tcode{R} satisfies \tcode{ranges::\libconcept{contiguous_range}} and
|
10788 | 10788 | \tcode{ranges::\libconcept{sized_range}}.
|
10789 |
| -\item Either \tcode{R} satisfies \exposconcept{forwarding-range} or |
| 10789 | +\item Either \tcode{R} satisfies \libconcept{safe_range} or |
10790 | 10790 | \tcode{is_const_v<element_type>} is \tcode{true}.
|
10791 | 10791 | \item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{span}.
|
10792 | 10792 | \item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{array}.
|
|
10805 | 10805 | \item \tcode{R} models \tcode{ranges::\libconcept{contiguous_range}} and
|
10806 | 10806 | \tcode{ranges::\libconcept{sized_range}}.
|
10807 | 10807 | \item If \tcode{is_const_v<element_type>} is \tcode{false},
|
10808 |
| -\tcode{R} models \exposconcept{forwarding-range}. |
| 10808 | +\tcode{R} models \libconcept{safe_range}. |
10809 | 10809 | \end{itemize}
|
10810 | 10810 |
|
10811 | 10811 | \pnum
|
|
0 commit comments