Skip to content

Commit

Permalink
[container.opt.reqmts] Index 3-way compare for containers (#6220)
Browse files Browse the repository at this point in the history
All of the standard containers are 3-way comparable, but the
specification is provided under optional container requirements
so does not show up in the index.
  • Loading branch information
AlisdairM authored Nov 8, 2023
1 parent 60e2803 commit c7fb99f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,26 @@
then the operations described below
are implemented by constexpr functions.

% Local command to index a name as a member of all containers.
\renewcommand{\indexcont}[1]{%
\indexlibrarymisc{\idxcode{#1}}{optional container requirements}%
\indexlibrarymemberx{array}{#1}%
\indexlibrarymemberx{deque}{#1}%
\indexlibrarymemberx{forward_list}{#1}%
\indexlibrarymemberx{list}{#1}%
\indexlibrarymemberx{vector}{#1}%
\indexlibrarymemberx{map}{#1}%
\indexlibrarymemberx{set}{#1}%
\indexlibrarymemberx{multiset}{#1}%
\indexlibrarymemberx{multimap}{#1}%
\indexlibrarymemberx{flat_map}{#1}%
\indexlibrarymemberx{flat_set}{#1}%
\indexlibrarymemberx{flat_multiset}{#1}%
\indexlibrarymemberx{flat_multimap}{#1}%
\indexlibrarymemberx{basic_string}{#1}%
}

\indexcont{operator<=>}%
\begin{itemdecl}
a <=> b
\end{itemdecl}
Expand Down

0 comments on commit c7fb99f

Please sign in to comment.