|
9704 | 9704 | template<class ElementType, ptrdiff_t Extent = dynamic_extent>
|
9705 | 9705 | class span;
|
9706 | 9706 |
|
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 |
| - |
9721 | 9707 | // \ref{span.objectrep}, views of object representation
|
9722 | 9708 | template<class ElementType, ptrdiff_t Extent>
|
9723 | 9709 | span<const byte,
|
|
10276 | 10262 | Equivalent to: \tcode{return const_reverse_iterator(cbegin());}
|
10277 | 10263 | \end{itemdescr}
|
10278 | 10264 |
|
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} |
10349 | 10265 |
|
10350 | 10266 | \rSec3[span.objectrep]{Views of object representation}
|
10351 | 10267 |
|
|
0 commit comments