Skip to content

Commit f853831

Browse files
committed
[meta.logical] Improve formatting for consistency with other library
clauses.
1 parent e0385dd commit f853831

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

source/utilities.tex

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10559,11 +10559,12 @@
1055910559
This subclause describes type traits for applying logical operators
1056010560
to other type traits.
1056110561

10562-
\pnum
10563-
\begin{codeblock}
10564-
template<class... B> struct conjunction : @\seebelow@ { };
10565-
\end{codeblock}
10562+
\indexlibrary{\idxcode{conjunction}}%
10563+
\begin{itemdecl}
10564+
template<class... B> struct conjunction : @\seebelow@ { };
10565+
\end{itemdecl}
1056610566

10567+
\begin{itemdescr}
1056710568
\pnum
1056810569
The class template \tcode{conjunction}
1056910570
forms the logical conjunction of its template type arguments.
@@ -10591,12 +10592,14 @@
1059110592
does not require the instantiation of \tcode{Bj::value} for \tcode{j > i}.
1059210593
\enternote This is analogous to the short-circuiting behavior of \tcode{\&\&}.
1059310594
\exitnote
10595+
\end{itemdescr}
1059410596

10595-
\pnum
10596-
\begin{codeblock}
10597-
template<class... B> struct disjunction : @\seebelow@ { };
10598-
\end{codeblock}
10597+
\indexlibrary{\idxcode{disjunction}}%
10598+
\begin{itemdecl}
10599+
template<class... B> struct disjunction : @\seebelow@ { };
10600+
\end{itemdecl}
1059910601

10602+
\begin{itemdescr}
1060010603
\pnum
1060110604
The class template \tcode{disjunction}
1060210605
forms the logical disjunction of its template type arguments.
@@ -10623,17 +10626,20 @@
1062310626
does not require the instantiation of \tcode{Bj::value} for \tcode{j > i}.
1062410627
\enternote This is analogous to the short-circuiting behavior of \tcode{||}.
1062510628
\exitnote
10629+
\end{itemdescr}
1062610630

10627-
\pnum
10628-
\begin{codeblock}
10629-
template<class B> struct negation : bool_constant<!B::value> { };
10630-
\end{codeblock}
10631+
\indexlibrary{\idxcode{negation}}%
10632+
\begin{itemdecl}
10633+
template<class B> struct negation : bool_constant<!B::value> { };
10634+
\end{itemdecl}
1063110635

10636+
\begin{itemdescr}
1063210637
\pnum
1063310638
The class template \tcode{negation}
1063410639
forms the logical negation of its template type argument.
1063510640
The type \tcode{negation<B>}
1063610641
is a UnaryTypeTrait with a BaseCharacteristic of \tcode{bool_constant<!B::value>}.
10642+
\end{itemdescr}
1063710643

1063810644
\rSec1[ratio]{Compile-time rational arithmetic}
1063910645

0 commit comments

Comments
 (0)