|
9803 | 9803 | template<class ElementType, ptrdiff_t Extent = dynamic_extent>
|
9804 | 9804 | class span;
|
9805 | 9805 |
|
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 |
| - |
9820 | 9806 | // \ref{span.objectrep}, views of object representation
|
9821 | 9807 | template<class ElementType, ptrdiff_t Extent>
|
9822 | 9808 | span<const byte,
|
|
10376 | 10362 | Equivalent to: \tcode{return const_reverse_iterator(cbegin());}
|
10377 | 10363 | \end{itemdescr}
|
10378 | 10364 |
|
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} |
10449 | 10365 |
|
10450 | 10366 | \rSec3[span.objectrep]{Views of object representation}
|
10451 | 10367 |
|
|
0 commit comments