Skip to content

Commit ee58345

Browse files
committed
[string.view.comparison] Fix index for basic_string_view operators
The first issue is that operator<< does not group in the index with other definitions for operator<<, which use an index key of operator\shl. The second issue is that operator<< was the only operator indexed under the 'basic_string_view' key, where the precedent fro basic_string and other types is that the free-function operators are still indexed under their respective class entry.
1 parent c8f1863 commit ee58345

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/strings.tex

+8-1
Original file line numberDiff line numberDiff line change
@@ -5363,6 +5363,7 @@
53635363
\exitexample
53645364

53655365
\indexlibrary{\idxcode{operator==}!\idxcode{basic_string_view}}%
5366+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator==}}%
53665367
\begin{itemdecl}
53675368
template<class charT, class traits>
53685369
constexpr bool operator==(basic_string_view<charT, traits> lhs,
@@ -5376,6 +5377,7 @@
53765377
\end{itemdescr}
53775378

53785379
\indexlibrary{\idxcode{operator!=}!\idxcode{basic_string_view}}%
5380+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator!=}}%
53795381
\begin{itemdecl}
53805382
template<class charT, class traits>
53815383
constexpr bool operator!=(basic_string_view<charT, traits> lhs,
@@ -5389,6 +5391,7 @@
53895391
\end{itemdescr}
53905392

53915393
\indexlibrary{\idxcode{operator<}!\idxcode{basic_string_view}}%
5394+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator<}}%
53925395
\begin{itemdecl}
53935396
template<class charT, class traits>
53945397
constexpr bool operator< (basic_string_view<charT, traits> lhs,
@@ -5402,6 +5405,7 @@
54025405
\end{itemdescr}
54035406

54045407
\indexlibrary{\idxcode{operator>}!\idxcode{basic_string_view}}%
5408+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator>}}%
54055409
\begin{itemdecl}
54065410
template<class charT, class traits>
54075411
constexpr bool operator> (basic_string_view<charT, traits> lhs,
@@ -5415,6 +5419,7 @@
54155419
\end{itemdescr}
54165420

54175421
\indexlibrary{\idxcode{operator<=}!\idxcode{basic_string_view}}%
5422+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator<=}}%
54185423
\begin{itemdecl}
54195424
template<class charT, class traits>
54205425
constexpr bool operator<=(basic_string_view<charT, traits> lhs,
@@ -5428,6 +5433,7 @@
54285433
\end{itemdescr}
54295434

54305435
\indexlibrary{\idxcode{operator>=}!\idxcode{basic_string_view}}%
5436+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator>=}}%
54315437
\begin{itemdecl}
54325438
template<class charT, class traits>
54335439
constexpr bool operator>=(basic_string_view<charT, traits> lhs,
@@ -5442,7 +5448,8 @@
54425448

54435449
\rSec2[string.view.io]{Inserters and extractors}
54445450

5445-
\indexlibrary{\idxcode{operator<<}!\idxcode{basic_string_view}}%
5451+
\indexlibrary{\idxcode{operator\shl}!\idxcode{basic_string_view}}%
5452+
\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator\shl}}%
54465453
\begin{itemdecl}
54475454
template<class charT, class traits>
54485455
basic_ostream<charT, traits>&

0 commit comments

Comments
 (0)