Skip to content

Commit 90adb2a

Browse files
CaseyCarterzygoloid
authored andcommitted
[concepts.integral] Merge [concept.integral], [concept.signed.int] and [concept.unsigned.int]
1 parent f58280f commit 90adb2a

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

Diff for: source/concepts.tex

+8-20
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,13 @@
156156
template<class T, class U>
157157
concept Common = @\seebelow@;
158158

159-
// \ref{concept.integral}, Integral
159+
// \ref{concepts.integral}, Integral concepts
160160
template<class T>
161161
concept Integral = @\seebelow@;
162162

163-
// \ref{concept.signed.int}, SignedIntegral
164163
template<class T>
165164
concept SignedIntegral = @\seebelow@;
166165

167-
// \ref{concept.unsigned.int}, UnsignedIntegral
168166
template<class T>
169167
concept UnsignedIntegral = @\seebelow@;
170168

@@ -445,20 +443,20 @@
445443

446444
\end{itemdescr}
447445

448-
\rSec2[concept.integral]{Concept \libconcept{Integral}}
446+
\rSec2[concepts.integral]{Integral concepts}
449447

450448
\indexlibrary{\idxcode{Integral}}%
449+
\indexlibrary{\idxcode{SignedIntegral}}%
450+
\indexlibrary{\idxcode{UnsignedIntegral}}%
451451
\begin{itemdecl}
452452
template<class T>
453453
concept Integral = is_integral_v<T>;
454-
\end{itemdecl}
455454

456-
\rSec2[concept.signed.int]{Concept \libconcept{SignedIntegral}}
457-
458-
\indexlibrary{\idxcode{SignedIntegral}}%
459-
\begin{itemdecl}
460455
template<class T>
461456
concept SignedIntegral = Integral<T> && is_signed_v<T>;
457+
458+
template<class T>
459+
concept UnsignedIntegral = Integral<T> && !SignedIntegral<T>;
462460
\end{itemdecl}
463461

464462
\begin{itemdescr}
@@ -467,21 +465,11 @@
467465
\tcode{\libconcept{SignedIntegral}<T>} can be satisfied even by types that are
468466
not signed integral types\iref{basic.fundamental}; for example, \tcode{char}.
469467
\end{note}
470-
\end{itemdescr}
471-
472-
\rSec2[concept.unsigned.int]{Concept \libconcept{UnsignedIntegral}}
473468

474-
\indexlibrary{\idxcode{UnsignedIntegral}}%
475-
\begin{itemdecl}
476-
template<class T>
477-
concept UnsignedIntegral = Integral<T> && !SignedIntegral<T>;
478-
\end{itemdecl}
479-
480-
\begin{itemdescr}
481469
\pnum
482470
\begin{note}
483471
\tcode{\libconcept{UnsignedIntegral}<T>} can be satisfied even by types that are
484-
not unsigned integral types\iref{basic.fundamental}; for example, \tcode{char}.
472+
not unsigned integral types\iref{basic.fundamental}; for example, \tcode{bool}.
485473
\end{note}
486474
\end{itemdescr}
487475

0 commit comments

Comments
 (0)