Skip to content

Commit 6435c42

Browse files
committed
Use cxxdraft-htmlgen macros more.
1 parent bb0f3ab commit 6435c42

File tree

15 files changed

+481
-489
lines changed

15 files changed

+481
-489
lines changed

source/algorithms.tex

Lines changed: 90 additions & 90 deletions
Large diffs are not rendered by default.

source/concepts.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
template<class T>
496496
concept @\deflibconcept{unsigned_integral}@ = @\libconcept{integral}@<T> && !@\libconcept{signed_integral}@<T>;
497497
template<class T>
498-
concept @\deflibconcept{floating_point}@ = @\libglobalref{is_floating_point_v}@<T>;
498+
concept @\deflibconcept{floating_point}@ = is_floating_point_v<T>;
499499
\end{itemdecl}
500500

501501
\begin{itemdescr}
@@ -747,7 +747,7 @@
747747
\begin{itemdescr}
748748
\pnum
749749
\begin{note}
750-
Unlike the \oldconcept{Destructible} requirements~(\tref{cpp17.destructible}), this
750+
Unlike the \oldconceptref{Destructible} requirements~(\tref{cpp17.destructible}), this
751751
concept forbids destructors that are potentially throwing, even if a particular
752752
invocation of the destructor does not actually throw.
753753
\end{note}

source/diagnostics.tex

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,9 @@
758758

759759
// \ref{syserr}, system error support
760760
template<class T>
761-
constexpr bool @\libglobal{is_error_code_enum_v}@ = is_error_code_enum<T>::value;
761+
constexpr bool @\libglobal{is_error_code_enum_v}@ = @\libglobalref{is_error_code_enum}@<T>::value;
762762
template<class T>
763-
constexpr bool is_error_condition_enum_v = is_error_condition_enum<T>::value;
763+
constexpr bool @\libglobal{is_error_condition_enum_v}@ = @\libglobalref{is_error_condition_enum}@<T>::value;
764764
}
765765
\end{codeblock}
766766

@@ -771,9 +771,9 @@
771771
exposes the \libheader{cerrno} macros is unspecified.
772772

773773
\pnum
774-
The \tcode{is_error_code_enum} and \tcode{is_error_condition_enum} templates may be
774+
The \libglobalref{is_error_code_enum} and \libglobalref{is_error_condition_enum} templates may be
775775
specialized for program-defined types to indicate that such types are eligible
776-
for \tcode{class error_code} and \tcode{class error_condition} implicit
776+
for \tcode{class \libglobalref{error_code}} and \tcode{class \libglobalref{error_condition}} implicit
777777
conversions, respectively.
778778

779779
\rSec2[syserr.errcat]{Class \tcode{error_category}}
@@ -798,8 +798,6 @@
798798
\indexlibraryglobal{error_category}%
799799
\indexlibraryctor{error_category}%
800800
\indexlibrarydtor{error_category}%
801-
\indexlibraryglobal{generic_category}%
802-
\indexlibraryglobal{system_category}%
803801
\begin{codeblock}
804802
namespace std {
805803
class error_category {
@@ -818,8 +816,8 @@
818816
strong_ordering operator<=>(const error_category& rhs) const noexcept;
819817
};
820818

821-
const error_category& generic_category() noexcept;
822-
const error_category& system_category() noexcept;
819+
const error_category& @\libglobal{generic_category}@() noexcept;
820+
const error_category& @\libglobal{system_category}@() noexcept;
823821
}
824822
\end{codeblock}
825823

@@ -1090,7 +1088,7 @@
10901088
\begin{itemdescr}
10911089
\pnum
10921090
\constraints
1093-
\tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
1091+
\tcode{\libglobalref{is_error_code_enum_v}<ErrorCodeEnum>} is \tcode{true}.
10941092

10951093
\pnum
10961094
\effects
@@ -1123,7 +1121,7 @@
11231121
\begin{itemdescr}
11241122
\pnum
11251123
\constraints
1126-
\tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
1124+
\tcode{\libglobalref{is_error_code_enum_v}<ErrorCodeEnum>} is \tcode{true}.
11271125

11281126
\pnum
11291127
\effects

source/exec.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@
3131
\capsep
3232
core &
3333
provide core execution functionality, and connection between core components &
34-
e.g., \tcode{connect}, \tcode{start} \\
34+
e.g., \libglobalref{connect}, \libglobalref{start} \\
3535
completion functions &
3636
called by senders to announce the completion of the work (success, error, or cancellation) &
37-
\tcode{set_value}, \tcode{set_error}, \tcode{set_stopped} \\
37+
\libglobalref{set_value}, \libglobalref{set_error}, \libglobalref{set_stopped} \\
3838
senders &
3939
allow the specialization of the provided sender algorithms &
4040
\begin{itemize}
41-
\item sender factories (e.g., \tcode{schedule}, \tcode{just}, \tcode{read_env})
42-
\item sender adaptors (e.g., \tcode{continues_on}, \tcode{then}, \tcode{let_value})
43-
\item sender consumers (e.g., \tcode{sync_wait})
41+
\item sender factories (e.g., \libglobalref{schedule}, \libglobalref{just}, \libglobalref{read_env})
42+
\item sender adaptors (e.g., \libglobalref{continues_on}, \libglobalref{then}, \libglobalref{let_value})
43+
\item sender consumers (e.g., \libglobalref{sync_wait})
4444
\end{itemize}
4545
\\
4646
queries &
4747
allow querying different properties of objects &
4848
\begin{itemize}
49-
\item general queries (e.g., \tcode{get_allocator}, \tcode{get_stop_token})
50-
\item environment queries (e.g., \tcode{get_scheduler}, \tcode{get_delegation_scheduler})
51-
\item scheduler queries (e.g., \tcode{get_forward_progress_guarantee})
52-
\item sender attribute queries (e.g., \tcode{get_completion_scheduler})
49+
\item general queries (e.g., \libglobalref{get_allocator}, \libglobalref{get_stop_token})
50+
\item environment queries (e.g., \tcode{get_scheduler}, \libglobalref{get_delegation_scheduler})
51+
\item scheduler queries (e.g., \libglobalref{get_forward_progress_guarantee})
52+
\item sender attribute queries (e.g., \libglobalref{get_completion_scheduler})
5353
\end{itemize}
5454
\\
5555
\end{floattable}

source/future.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359

360360
\pnum
361361
\remarks
362-
\tcode{is_pod<T>} is a \oldconcept{UnaryTypeTrait}\iref{meta.rqmts}
362+
\tcode{is_pod<T>} is a \oldconceptref{UnaryTypeTrait}\iref{meta.rqmts}
363363
with a base characteristic of \tcode{true_type}
364364
if \tcode{T} is a POD type,
365365
and \tcode{false_type} otherwise.
@@ -543,7 +543,7 @@
543543
If the expression \tcode{TS::value} is well-formed
544544
when treated as an \deflink{unevaluated operand}{expr.context},
545545
then specializations of each of the two templates meet
546-
the \oldconcept{TransformationTrait} requirements with a base characteristic of
546+
the \oldconceptref{TransformationTrait} requirements with a base characteristic of
547547
\tcode{integral_constant<size_t, TS::value>}.
548548
Otherwise, they have no member \tcode{value}.
549549

@@ -571,7 +571,7 @@
571571
Let \tcode{TE} denote \tcode{tuple_element_t<I, T>}
572572
of the cv-unqualified type \tcode{T}.
573573
Then specializations of each of the two templates meet
574-
the \oldconcept{TransformationTrait} requirements
574+
the \oldconceptref{TransformationTrait} requirements
575575
with a member typedef \tcode{type} that names the following type:
576576
\begin{itemize}
577577
\item for the first specialization, \tcode{volatile TE}, and
@@ -611,7 +611,7 @@
611611
Let \tcode{VS} denote \tcode{variant_size<T>}
612612
of the cv-unqualified type \tcode{T}.
613613
Then specializations of each of the two templates meet
614-
the \oldconcept{UnaryTypeTrait} requirements
614+
the \oldconceptref{UnaryTypeTrait} requirements
615615
with a base characteristic of \tcode{integral_constant<size_t, VS::value>}.
616616
\end{itemdescr}
617617

@@ -625,7 +625,7 @@
625625
Let \tcode{VA} denote \tcode{variant_alternative<I, T>}
626626
of the cv-unqualified type \tcode{T}.
627627
Then specializations of each of the two templates meet
628-
the \oldconcept{TransformationTrait} requirements
628+
the \oldconceptref{TransformationTrait} requirements
629629
with a member typedef \tcode{type} that names the following type:
630630
\begin{itemize}
631631
\item for the first specialization, \tcode{volatile VA::type}, and

source/iostreams.tex

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,22 +1681,22 @@
16811681
It holds a state object
16821682
whose type is equal to the template parameter \tcode{stateT}.
16831683
Type \tcode{stateT} shall meet
1684-
the \oldconcept{DefaultConstructible} (\tref{cpp17.defaultconstructible}),
1685-
\oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}),
1686-
\oldconcept{CopyAssignable} (\tref{cpp17.copyassignable}), and
1687-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements.
1684+
the \oldconceptref{DefaultConstructible} (\tref{cpp17.defaultconstructible}),
1685+
\oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}),
1686+
\oldconceptref{CopyAssignable} (\tref{cpp17.copyassignable}), and
1687+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements.
16881688
If \tcode{is_trivially_copy_constructible_v<stateT>} is \tcode{true},
16891689
then \tcode{fpos<stateT>} has a trivial copy constructor.
16901690
If \tcode{is_trivially_copy_assignable_v<stateT>} is \tcode{true},
16911691
then \tcode{fpos<stateT>} has a trivial copy assignment operator.
16921692
If \tcode{is_trivially_destructible_v<stateT>} is \tcode{true},
16931693
then \tcode{fpos<stateT>} has a trivial destructor.
16941694
All specializations of \tcode{fpos} meet
1695-
the \oldconcept{DefaultConstructible},
1696-
\oldconcept{CopyConstructible},
1697-
\oldconcept{CopyAssignable},
1698-
\oldconcept{Destructible},
1699-
and \oldconcept{EqualityComparable} (\tref{cpp17.equalitycomparable}) requirements.
1695+
the \oldconceptref{DefaultConstructible},
1696+
\oldconceptref{CopyConstructible},
1697+
\oldconceptref{CopyAssignable},
1698+
\oldconceptref{Destructible},
1699+
and \oldconceptref{EqualityComparable} (\tref{cpp17.equalitycomparable}) requirements.
17001700
In addition, the expressions shown in \tref{fpos.operations}
17011701
are valid and have the indicated semantics.
17021702
In that table,
@@ -12957,7 +12957,7 @@
1295712957

1295812958
\pnum
1295912959
\tcode{Allocator} shall meet
12960-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
12960+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1296112961

1296212962
\pnum
1296312963
\begin{example}
@@ -13250,7 +13250,7 @@
1325013250

1325113251
\pnum
1325213252
Template parameters named \tcode{InputIterator} shall meet the
13253-
\oldconcept{InputIterator} requirements\iref{input.iterators} and shall
13253+
\oldconceptref{InputIterator} requirements\iref{input.iterators} and shall
1325413254
have a value type that is one of the encoded character types.
1325513255

1325613256
\pnum
@@ -13264,7 +13264,7 @@
1326413264

1326513265
\pnum
1326613266
Template parameters named \tcode{Allocator} shall meet
13267-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
13267+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1326813268

1326913269
\rSec2[fs.filesystem.syn]{Header \tcode{<filesystem>} synopsis}
1327013270

@@ -14082,7 +14082,7 @@
1408214082
\item \tcode{basic_string_view<EcharT, traits>}. A function
1408314083
argument \tcode{const Source\&} \tcode{source} shall have an
1408414084
effective range \range{source.begin()}{source.end()}.
14085-
\item A type meeting the \oldconcept{InputIterator} requirements that iterates over an NTCTS\@.
14085+
\item A type meeting the \oldconceptref{InputIterator} requirements that iterates over an NTCTS\@.
1408614086
The value type shall be an encoded character type. A function argument
1408714087
\tcode{const Source\&} \tcode{source} shall have an effective range
1408814088
\range{source}{end} where \tcode{end} is the first
@@ -16587,7 +16587,7 @@
1658716587

1658816588
\pnum
1658916589
\tcode{directory_iterator} meets the
16590-
\oldconcept{InputIterator} requirements\iref{input.iterators}.
16590+
\oldconceptref{InputIterator} requirements\iref{input.iterators}.
1659116591

1659216592
\pnum
1659316593
If an iterator of type \tcode{directory_iterator} reports an error or

source/lib-intro.tex

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@
18681868
}\\
18691869
\end{oldconcepttable}
18701870

1871-
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconcept{MoveConstructible})}{cpp17.copyconstructible}
1871+
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconceptref{MoveConstructible})}{cpp17.copyconstructible}
18721872
{p{1in}p{4.15in}}
18731873
\topline
18741874
\hdstyle{Expression} & \hdstyle{Post-condition} \\ \capsep
@@ -1895,7 +1895,7 @@
18951895
}\\
18961896
\end{oldconcepttable}
18971897

1898-
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconcept{MoveAssignable})}{cpp17.copyassignable}
1898+
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconceptref{MoveAssignable})}{cpp17.copyassignable}
18991899
{p{1in}p{1in}p{1in}p{1.9in}}
19001900
\topline
19011901
\hdstyle{Expression} & \hdstyle{Return type} & \hdstyle{Return value} & \hdstyle{Post-condition} \\ \capsep
@@ -1909,7 +1909,7 @@
19091909
\tcode{a.\~T()} & No exception is propagated. \\ \rowsep
19101910
\multicolumn{2}{|l|}{
19111911
\begin{tailnote}
1912-
Array types and non-object types are not \oldconcept{Destructible}.
1912+
Array types and non-object types are not \oldconceptref{Destructible}.
19131913
\end{tailnote}
19141914
} \\
19151915
\end{oldconcepttable}
@@ -1988,7 +1988,7 @@
19881988
// for rvalues and lvalues
19891989
}
19901990

1991-
// Preconditions: \tcode{T} meets the \oldconcept{Swappable} requirements.
1991+
// Preconditions: \tcode{T} meets the \oldconceptref{Swappable} requirements.
19921992
template<class T>
19931993
void lv_swap(T& t1, T& t2) {
19941994
using std::swap;
@@ -2025,9 +2025,9 @@
20252025
A \oldconcept{NullablePointer} type is a pointer-like type that supports null values.
20262026
A type \tcode{P} meets the \oldconcept{\-Nullable\-Pointer} requirements if
20272027
\begin{itemize}
2028-
\item \tcode{P} meets the \oldconcept{EqualityComparable},
2029-
\oldconcept{DefaultConstructible}, \oldconcept{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
2030-
\oldconcept{Swappable}, and \oldconcept{Destructible} requirements,
2028+
\item \tcode{P} meets the \oldconceptref{EqualityComparable},
2029+
\oldconceptref{DefaultConstructible}, \oldconceptref{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
2030+
\oldconceptref{Swappable}, and \oldconceptref{Destructible} requirements,
20312031

20322032
\item the expressions shown in \tref{cpp17.nullablepointer} are
20332033
valid and have the indicated semantics, and
@@ -2103,8 +2103,8 @@
21032103
A type \tcode{H} meets the \defnoldconcept{Hash} requirements if
21042104
\begin{itemize}
21052105
\item it is a function object type\iref{function.objects},
2106-
\item it meets the \oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2107-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements, and
2106+
\item it meets the \oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2107+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements, and
21082108
\item the expressions shown in \tref{cpp17.hash}
21092109
are valid and have the indicated semantics.
21102110
\end{itemize}
@@ -2788,7 +2788,7 @@
27882788
\tcode{true_type} only if an allocator of type \tcode{X} should be copied
27892789
when the client container is copy-assigned;
27902790
if so, \tcode{X} shall meet
2791-
the \oldconcept{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
2791+
the \oldconceptref{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
27922792
the copy operation shall not throw exceptions.
27932793

27942794
\pnum
@@ -2810,7 +2810,7 @@
28102810
\tcode{true_type} only if an allocator of type \tcode{X} should be moved
28112811
when the client container is move-assigned;
28122812
if so, \tcode{X} shall meet
2813-
the \oldconcept{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
2813+
the \oldconceptref{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
28142814
the move operation shall not throw exceptions.
28152815

28162816
\pnum
@@ -2832,7 +2832,7 @@
28322832
\tcode{true_type} only if an allocator of type \tcode{X} should be swapped
28332833
when the client container is swapped;
28342834
if so,
2835-
\tcode{X} shall meet the \oldconcept{Swappable} requirements\iref{swappable.requirements} and
2835+
\tcode{X} shall meet the \oldconceptref{Swappable} requirements\iref{swappable.requirements} and
28362836
the \tcode{swap} operation shall not throw exceptions.
28372837

28382838
\pnum
@@ -2862,15 +2862,15 @@
28622862

28632863
\pnum
28642864
An allocator type \tcode{X} shall meet the
2865-
\oldconcept{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
2865+
\oldconceptref{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
28662866
The \tcode{XX::pointer}, \tcode{XX::const_pointer}, \tcode{XX::void_pointer}, and
28672867
\tcode{XX::const_void_pointer} types shall meet the
28682868
\oldconcept{Nullable\-Pointer} requirements (\tref{cpp17.nullablepointer}).
28692869
No constructor,
28702870
comparison operator function, copy operation, move operation, or swap operation on
28712871
these pointer types shall exit via an exception. \tcode{XX::pointer} and \tcode{XX::const_pointer} shall also
28722872
meet the requirements for
2873-
a \oldconcept{RandomAccessIterator}\iref{random.access.iterators} and
2873+
a \oldconceptref{RandomAccessIterator}\iref{random.access.iterators} and
28742874
the additional requirement that, when \tcode{p} and \tcode{(p + n)} are
28752875
dereferenceable pointer values for some integral value \tcode{n},
28762876
\begin{codeblock}

0 commit comments

Comments
 (0)