Skip to content

Commit 30e5547

Browse files
committed
[tuple, variant] Turn synopses into numbered subclauses
In pursuit of issue #566.
1 parent 7175671 commit 30e5547

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

source/utilities.tex

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,10 +1400,9 @@
14001400
two arguments is similar to an instantiation of \tcode{pair} with the same two arguments.
14011401
See~\ref{pairs}.
14021402

1403-
\pnum
1404-
\synopsis{Header \tcode{<tuple>} synopsis}
1403+
\rSec2[tuple.syn]{Header \tcode{<tuple>} synopsis}
1404+
\indexlibrary{\idxhdr{tuple}}
14051405

1406-
\indexlibrary{\idxhdr{tuple}}%
14071406
\begin{codeblock}
14081407
namespace std {
14091408
// \ref{tuple.tuple}, class template \tcode{tuple}
@@ -2512,8 +2511,8 @@
25122511
object is tracked by the optional object.
25132512

25142513
\rSec2[optional.syn]{Header \tcode{<optional>} synopsis}
2514+
\indexlibrary{\idxhdr{optional}}
25152515

2516-
\indexlibrary{\idxhdr{optional}}%
25172516
\begin{codeblock}
25182517
namespace std {
25192518
// \ref{optional.optional}, optional
@@ -3989,8 +3988,8 @@
39893988
of the template argument types given to variant.
39903989
These template arguments are called alternatives.
39913990

3992-
\indexlibrary{\idxhdr{variant}}%
3993-
\synopsis{Header \tcode{<variant>} synopsis}
3991+
\rSec2[variant.syn]{Header \tcode{<variant>} synopsis}
3992+
\indexlibrary{\idxhdr{variant}}
39943993

39953994
\begin{codeblock}
39963995
namespace std {
@@ -4002,8 +4001,8 @@
40024001
template <class T> struct variant_size<const T>;
40034002
template <class T> struct variant_size<volatile T>;
40044003
template <class T> struct variant_size<const volatile T>;
4005-
template <class T> constexpr size_t variant_size_v
4006-
= variant_size<T>::value;
4004+
template <class T>
4005+
constexpr size_t variant_size_v = variant_size<T>::value;
40074006

40084007
template <class... Types>
40094008
struct variant_size<variant<Types...>>;

0 commit comments

Comments
 (0)