Skip to content

Commit 8ce07ea

Browse files
authored
Merge 2018-11 LWG Motion 23
P1085R2 Should Span be Regular? Fixes #2429
2 parents 6b999a7 + eaa77ed commit 8ce07ea

File tree

1 file changed

+0
-84
lines changed

1 file changed

+0
-84
lines changed

source/containers.tex

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -9803,20 +9803,6 @@
98039803
template<class ElementType, ptrdiff_t Extent = dynamic_extent>
98049804
class span;
98059805

9806-
// \ref{span.comparison}, comparison operators
9807-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9808-
constexpr bool operator==(span<T, X> l, span<U, Y> r);
9809-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9810-
constexpr bool operator!=(span<T, X> l, span<U, Y> r);
9811-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9812-
constexpr bool operator<(span<T, X> l, span<U, Y> r);
9813-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9814-
constexpr bool operator>(span<T, X> l, span<U, Y> r);
9815-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9816-
constexpr bool operator<=(span<T, X> l, span<U, Y> r);
9817-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9818-
constexpr bool operator>=(span<T, X> l, span<U, Y> r);
9819-
98209806
// \ref{span.objectrep}, views of object representation
98219807
template<class ElementType, ptrdiff_t Extent>
98229808
span<const byte,
@@ -10376,76 +10362,6 @@
1037610362
Equivalent to: \tcode{return const_reverse_iterator(cbegin());}
1037710363
\end{itemdescr}
1037810364

10379-
\rSec3[span.comparison]{Comparison operators}
10380-
10381-
\indexlibrary{\idxcode{operator==}!\idxcode{span}}%
10382-
\begin{itemdecl}
10383-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10384-
constexpr bool operator==(span<T, X> l, span<U, Y> r);
10385-
\end{itemdecl}
10386-
\begin{itemdescr}
10387-
\pnum
10388-
\effects
10389-
Equivalent to: \tcode{return equal(l.begin(), l.end(), r.begin(), r.end());}
10390-
\end{itemdescr}
10391-
10392-
\indexlibrary{\idxcode{operator"!=}!\idxcode{span}}%
10393-
\begin{itemdecl}
10394-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10395-
constexpr bool operator!=(span<T, X> l, span<U, Y> r);
10396-
\end{itemdecl}
10397-
\begin{itemdescr}
10398-
\pnum
10399-
\effects
10400-
Equivalent to: \tcode{return !(l == r);}
10401-
\end{itemdescr}
10402-
10403-
\indexlibrary{\idxcode{operator<}!\idxcode{span}}%
10404-
\begin{itemdecl}
10405-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10406-
constexpr bool operator<(span<T, X> l, span<U, Y> r);
10407-
\end{itemdecl}
10408-
\begin{itemdescr}
10409-
\pnum
10410-
\effects
10411-
Equivalent to:
10412-
\begin{codeblock}
10413-
return lexicographical_compare(l.begin(), l.end(), r.begin(), r.end());
10414-
\end{codeblock}
10415-
\end{itemdescr}
10416-
10417-
\indexlibrary{\idxcode{operator>}!\idxcode{span}}%
10418-
\begin{itemdecl}
10419-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10420-
constexpr bool operator>(span<T, X> l, span<U, Y> r);
10421-
\end{itemdecl}
10422-
\begin{itemdescr}
10423-
\pnum
10424-
\effects
10425-
Equivalent to: \tcode{return (r < l);}
10426-
\end{itemdescr}
10427-
10428-
\indexlibrary{\idxcode{operator<=}!\idxcode{span}}%
10429-
\begin{itemdecl}
10430-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10431-
constexpr bool operator<=(span<T, X> l, span<U, Y> r);
10432-
\end{itemdecl}
10433-
\begin{itemdescr}
10434-
\pnum
10435-
\effects
10436-
Equivalent to: \tcode{return !(r < l);}
10437-
\end{itemdescr}
10438-
10439-
\indexlibrary{\idxcode{operator>=}!\idxcode{span}}%
10440-
\begin{itemdecl}
10441-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10442-
constexpr bool operator>=(span<T, X> l, span<U, Y> r);
10443-
\end{itemdecl}
10444-
\begin{itemdescr}
10445-
\pnum
10446-
\effects
10447-
Equivalent to: \tcode{return !(l < r);}
10448-
\end{itemdescr}
1044910365

1045010366
\rSec3[span.objectrep]{Views of object representation}
1045110367

0 commit comments

Comments
 (0)