Skip to content

Commit 482d0d2

Browse files
authored
remove comparisons on span
1 parent 05680a0 commit 482d0d2

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
@@ -9704,20 +9704,6 @@
97049704
template<class ElementType, ptrdiff_t Extent = dynamic_extent>
97059705
class span;
97069706

9707-
// \ref{span.comparison}, comparison operators
9708-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9709-
constexpr bool operator==(span<T, X> l, span<U, Y> r);
9710-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9711-
constexpr bool operator!=(span<T, X> l, span<U, Y> r);
9712-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9713-
constexpr bool operator<(span<T, X> l, span<U, Y> r);
9714-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9715-
constexpr bool operator>(span<T, X> l, span<U, Y> r);
9716-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9717-
constexpr bool operator<=(span<T, X> l, span<U, Y> r);
9718-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
9719-
constexpr bool operator>=(span<T, X> l, span<U, Y> r);
9720-
97219707
// \ref{span.objectrep}, views of object representation
97229708
template<class ElementType, ptrdiff_t Extent>
97239709
span<const byte,
@@ -10276,76 +10262,6 @@
1027610262
Equivalent to: \tcode{return const_reverse_iterator(cbegin());}
1027710263
\end{itemdescr}
1027810264

10279-
\rSec3[span.comparison]{Comparison operators}
10280-
10281-
\indexlibrary{\idxcode{operator==}!\idxcode{span}}%
10282-
\begin{itemdecl}
10283-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10284-
constexpr bool operator==(span<T, X> l, span<U, Y> r);
10285-
\end{itemdecl}
10286-
\begin{itemdescr}
10287-
\pnum
10288-
\effects
10289-
Equivalent to: \tcode{return equal(l.begin(), l.end(), r.begin(), r.end());}
10290-
\end{itemdescr}
10291-
10292-
\indexlibrary{\idxcode{operator"!=}!\idxcode{span}}%
10293-
\begin{itemdecl}
10294-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10295-
constexpr bool operator!=(span<T, X> l, span<U, Y> r);
10296-
\end{itemdecl}
10297-
\begin{itemdescr}
10298-
\pnum
10299-
\effects
10300-
Equivalent to: \tcode{return !(l == r);}
10301-
\end{itemdescr}
10302-
10303-
\indexlibrary{\idxcode{operator<}!\idxcode{span}}%
10304-
\begin{itemdecl}
10305-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10306-
constexpr bool operator<(span<T, X> l, span<U, Y> r);
10307-
\end{itemdecl}
10308-
\begin{itemdescr}
10309-
\pnum
10310-
\effects
10311-
Equivalent to:
10312-
\begin{codeblock}
10313-
return lexicographical_compare(l.begin(), l.end(), r.begin(), r.end());
10314-
\end{codeblock}
10315-
\end{itemdescr}
10316-
10317-
\indexlibrary{\idxcode{operator>}!\idxcode{span}}%
10318-
\begin{itemdecl}
10319-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10320-
constexpr bool operator>(span<T, X> l, span<U, Y> r);
10321-
\end{itemdecl}
10322-
\begin{itemdescr}
10323-
\pnum
10324-
\effects
10325-
Equivalent to: \tcode{return (r < l);}
10326-
\end{itemdescr}
10327-
10328-
\indexlibrary{\idxcode{operator<=}!\idxcode{span}}%
10329-
\begin{itemdecl}
10330-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10331-
constexpr bool operator<=(span<T, X> l, span<U, Y> r);
10332-
\end{itemdecl}
10333-
\begin{itemdescr}
10334-
\pnum
10335-
\effects
10336-
Equivalent to: \tcode{return !(r < l);}
10337-
\end{itemdescr}
10338-
10339-
\indexlibrary{\idxcode{operator>=}!\idxcode{span}}%
10340-
\begin{itemdecl}
10341-
template<class T, ptrdiff_t X, class U, ptrdiff_t Y>
10342-
constexpr bool operator>=(span<T, X> l, span<U, Y> r);
10343-
\end{itemdecl}
10344-
\begin{itemdescr}
10345-
\pnum
10346-
\effects
10347-
Equivalent to: \tcode{return !(l < r);}
10348-
\end{itemdescr}
1034910265

1035010266
\rSec3[span.objectrep]{Views of object representation}
1035110267

0 commit comments

Comments
 (0)