Skip to content

Commit 14268b0

Browse files
committed
Use cxxdraft-htmlgen macros more.
1 parent dcab745 commit 14268b0

15 files changed

+517
-526
lines changed

source/algorithms.tex

+97-97
Large diffs are not rendered by default.

source/concepts.tex

+2-2
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

+8-10
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,9 @@
834834

835835
// \ref{syserr}, system error support
836836
template<class T>
837-
constexpr bool @\libglobal{is_error_code_enum_v}@ = is_error_code_enum<T>::value;
837+
constexpr bool @\libglobal{is_error_code_enum_v}@ = @\libglobalref{is_error_code_enum}@<T>::value;
838838
template<class T>
839-
constexpr bool is_error_condition_enum_v = is_error_condition_enum<T>::value;
839+
constexpr bool @\libglobal{is_error_condition_enum_v}@ = @\libglobalref{is_error_condition_enum}@<T>::value;
840840
}
841841
\end{codeblock}
842842

@@ -847,9 +847,9 @@
847847
exposes the \libheader{cerrno} macros is unspecified.
848848

849849
\pnum
850-
The \tcode{is_error_code_enum} and \tcode{is_error_condition_enum} templates may be
850+
The \libglobalref{is_error_code_enum} and \libglobalref{is_error_condition_enum} templates may be
851851
specialized for program-defined types to indicate that such types are eligible
852-
for \tcode{class error_code} and \tcode{class error_condition} implicit
852+
for \tcode{class \libglobalref{error_code}} and \tcode{class \libglobalref{error_condition}} implicit
853853
conversions, respectively.
854854

855855
\rSec2[syserr.errcat]{Class \tcode{error_category}}
@@ -874,8 +874,6 @@
874874
\indexlibraryglobal{error_category}%
875875
\indexlibraryctor{error_category}%
876876
\indexlibrarydtor{error_category}%
877-
\indexlibraryglobal{generic_category}%
878-
\indexlibraryglobal{system_category}%
879877
\begin{codeblock}
880878
namespace std {
881879
class error_category {
@@ -894,8 +892,8 @@
894892
strong_ordering operator<=>(const error_category& rhs) const noexcept;
895893
};
896894

897-
const error_category& generic_category() noexcept;
898-
const error_category& system_category() noexcept;
895+
const error_category& @\libglobal{generic_category}@() noexcept;
896+
const error_category& @\libglobal{system_category}@() noexcept;
899897
}
900898
\end{codeblock}
901899

@@ -1166,7 +1164,7 @@
11661164
\begin{itemdescr}
11671165
\pnum
11681166
\constraints
1169-
\tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
1167+
\tcode{\libglobalref{is_error_code_enum_v}<ErrorCodeEnum>} is \tcode{true}.
11701168

11711169
\pnum
11721170
\effects
@@ -1199,7 +1197,7 @@
11991197
\begin{itemdescr}
12001198
\pnum
12011199
\constraints
1202-
\tcode{is_error_code_enum_v<ErrorCodeEnum>} is \tcode{true}.
1200+
\tcode{\libglobalref{is_error_code_enum_v}<ErrorCodeEnum>} is \tcode{true}.
12031201

12041202
\pnum
12051203
\effects

source/exec.tex

+9-9
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

+5-5
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323

324324
\pnum
325325
\remarks
326-
\tcode{is_pod<T>} is a \oldconcept{UnaryTypeTrait}\iref{meta.rqmts}
326+
\tcode{is_pod<T>} is a \oldconceptref{UnaryTypeTrait}\iref{meta.rqmts}
327327
with a base characteristic of \tcode{true_type}
328328
if \tcode{T} is a POD type,
329329
and \tcode{false_type} otherwise.
@@ -507,7 +507,7 @@
507507
If the expression \tcode{TS::value} is well-formed
508508
when treated as an \deflink{unevaluated operand}{expr.context},
509509
then specializations of each of the two templates meet
510-
the \oldconcept{TransformationTrait} requirements with a base characteristic of
510+
the \oldconceptref{TransformationTrait} requirements with a base characteristic of
511511
\tcode{integral_constant<size_t, TS::value>}.
512512
Otherwise, they have no member \tcode{value}.
513513

@@ -535,7 +535,7 @@
535535
Let \tcode{TE} denote \tcode{tuple_element_t<I, T>}
536536
of the cv-unqualified type \tcode{T}.
537537
Then specializations of each of the two templates meet
538-
the \oldconcept{TransformationTrait} requirements
538+
the \oldconceptref{TransformationTrait} requirements
539539
with a member typedef \tcode{type} that names the following type:
540540
\begin{itemize}
541541
\item for the first specialization, \tcode{add_volatile_t<TE>}, and
@@ -575,7 +575,7 @@
575575
Let \tcode{VS} denote \tcode{variant_size<T>}
576576
of the cv-unqualified type \tcode{T}.
577577
Then specializations of each of the two templates meet
578-
the \oldconcept{UnaryTypeTrait} requirements
578+
the \oldconceptref{UnaryTypeTrait} requirements
579579
with a base characteristic of \tcode{integral_constant<size_t, VS::value>}.
580580
\end{itemdescr}
581581

@@ -589,7 +589,7 @@
589589
Let \tcode{VA} denote \tcode{variant_alternative<I, T>}
590590
of the cv-unqualified type \tcode{T}.
591591
Then specializations of each of the two templates meet
592-
the \oldconcept{TransformationTrait} requirements
592+
the \oldconceptref{TransformationTrait} requirements
593593
with a member typedef \tcode{type} that names the following type:
594594
\begin{itemize}
595595
\item for the first specialization, \tcode{add_volatile_t<VA::type>}, and

source/iostreams.tex

+14-14
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,
@@ -12940,7 +12940,7 @@
1294012940

1294112941
\pnum
1294212942
\tcode{Allocator} shall meet
12943-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
12943+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1294412944

1294512945
\pnum
1294612946
\begin{example}
@@ -13233,7 +13233,7 @@
1323313233

1323413234
\pnum
1323513235
Template parameters named \tcode{InputIterator} shall meet the
13236-
\oldconcept{InputIterator} requirements\iref{input.iterators} and shall
13236+
\oldconceptref{InputIterator} requirements\iref{input.iterators} and shall
1323713237
have a value type that is one of the encoded character types.
1323813238

1323913239
\pnum
@@ -13247,7 +13247,7 @@
1324713247

1324813248
\pnum
1324913249
Template parameters named \tcode{Allocator} shall meet
13250-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
13250+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1325113251

1325213252
\rSec2[fs.filesystem.syn]{Header \tcode{<filesystem>} synopsis}
1325313253

@@ -14060,7 +14060,7 @@
1406014060
\item \tcode{basic_string_view<EcharT, traits>}. A function
1406114061
argument \tcode{const Source\&} \tcode{source} shall have an
1406214062
effective range \range{source.begin()}{source.end()}.
14063-
\item A type meeting the \oldconcept{InputIterator} requirements that iterates over a NTCTS\@.
14063+
\item A type meeting the \oldconceptref{InputIterator} requirements that iterates over a NTCTS\@.
1406414064
The value type shall be an encoded character type. A function argument
1406514065
\tcode{const Source\&} \tcode{source} shall have an effective range
1406614066
\range{source}{end} where \tcode{end} is the first
@@ -16540,7 +16540,7 @@
1654016540

1654116541
\pnum
1654216542
\tcode{directory_iterator} meets the
16543-
\oldconcept{InputIterator} requirements\iref{input.iterators}.
16543+
\oldconceptref{InputIterator} requirements\iref{input.iterators}.
1654416544

1654516545
\pnum
1654616546
If an iterator of type \tcode{directory_iterator} reports an error or

source/lib-intro.tex

+14-14
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@
17701770
}\\
17711771
\end{oldconcepttable}
17721772

1773-
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconcept{MoveConstructible})}{cpp17.copyconstructible}
1773+
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconceptref{MoveConstructible})}{cpp17.copyconstructible}
17741774
{p{1in}p{4.15in}}
17751775
\topline
17761776
\hdstyle{Expression} & \hdstyle{Post-condition} \\ \capsep
@@ -1797,7 +1797,7 @@
17971797
}\\
17981798
\end{oldconcepttable}
17991799

1800-
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconcept{MoveAssignable})}{cpp17.copyassignable}
1800+
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconceptref{MoveAssignable})}{cpp17.copyassignable}
18011801
{p{1in}p{1in}p{1in}p{1.9in}}
18021802
\topline
18031803
\hdstyle{Expression} & \hdstyle{Return type} & \hdstyle{Return value} & \hdstyle{Post-condition} \\ \capsep
@@ -1811,7 +1811,7 @@
18111811
\tcode{u.\~T()} & All resources owned by \tcode{u} are reclaimed, no exception is propagated. \\ \rowsep
18121812
\multicolumn{2}{|l|}{
18131813
\begin{tailnote}
1814-
Array types and non-object types are not \oldconcept{Destructible}.
1814+
Array types and non-object types are not \oldconceptref{Destructible}.
18151815
\end{tailnote}
18161816
} \\
18171817
\end{oldconcepttable}
@@ -1890,7 +1890,7 @@
18901890
// for rvalues and lvalues
18911891
}
18921892

1893-
// Preconditions: \tcode{T} meets the \oldconcept{Swappable} requirements.
1893+
// Preconditions: \tcode{T} meets the \oldconceptref{Swappable} requirements.
18941894
template<class T>
18951895
void lv_swap(T& t1, T& t2) {
18961896
using std::swap;
@@ -1927,9 +1927,9 @@
19271927
A \oldconcept{NullablePointer} type is a pointer-like type that supports null values.
19281928
A type \tcode{P} meets the \oldconcept{\-Nullable\-Pointer} requirements if
19291929
\begin{itemize}
1930-
\item \tcode{P} meets the \oldconcept{EqualityComparable},
1931-
\oldconcept{DefaultConstructible}, \oldconcept{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
1932-
\oldconcept{Swappable}, and \oldconcept{Destructible} requirements,
1930+
\item \tcode{P} meets the \oldconceptref{EqualityComparable},
1931+
\oldconceptref{DefaultConstructible}, \oldconceptref{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
1932+
\oldconceptref{Swappable}, and \oldconceptref{Destructible} requirements,
19331933

19341934
\item the expressions shown in \tref{cpp17.nullablepointer} are
19351935
valid and have the indicated semantics, and
@@ -2005,8 +2005,8 @@
20052005
A type \tcode{H} meets the \defnoldconcept{Hash} requirements if
20062006
\begin{itemize}
20072007
\item it is a function object type\iref{function.objects},
2008-
\item it meets the \oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2009-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements, and
2008+
\item it meets the \oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2009+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements, and
20102010
\item the expressions shown in \tref{cpp17.hash}
20112011
are valid and have the indicated semantics.
20122012
\end{itemize}
@@ -2690,7 +2690,7 @@
26902690
\tcode{true_type} only if an allocator of type \tcode{X} should be copied
26912691
when the client container is copy-assigned;
26922692
if so, \tcode{X} shall meet
2693-
the \oldconcept{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
2693+
the \oldconceptref{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
26942694
the copy operation shall not throw exceptions.
26952695

26962696
\pnum
@@ -2712,7 +2712,7 @@
27122712
\tcode{true_type} only if an allocator of type \tcode{X} should be moved
27132713
when the client container is move-assigned;
27142714
if so, \tcode{X} shall meet
2715-
the \oldconcept{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
2715+
the \oldconceptref{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
27162716
the move operation shall not throw exceptions.
27172717

27182718
\pnum
@@ -2734,7 +2734,7 @@
27342734
\tcode{true_type} only if an allocator of type \tcode{X} should be swapped
27352735
when the client container is swapped;
27362736
if so,
2737-
\tcode{X} shall meet the \oldconcept{Swappable} requirements\iref{swappable.requirements} and
2737+
\tcode{X} shall meet the \oldconceptref{Swappable} requirements\iref{swappable.requirements} and
27382738
the \tcode{swap} operation shall not throw exceptions.
27392739

27402740
\pnum
@@ -2764,15 +2764,15 @@
27642764

27652765
\pnum
27662766
An allocator type \tcode{X} shall meet the
2767-
\oldconcept{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
2767+
\oldconceptref{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
27682768
The \tcode{XX::pointer}, \tcode{XX::const_pointer}, \tcode{XX::void_pointer}, and
27692769
\tcode{XX::const_void_pointer} types shall meet the
27702770
\oldconcept{Nullable\-Pointer} requirements (\tref{cpp17.nullablepointer}).
27712771
No constructor,
27722772
comparison operator function, copy operation, move operation, or swap operation on
27732773
these pointer types shall exit via an exception. \tcode{XX::pointer} and \tcode{XX::const_pointer} shall also
27742774
meet the requirements for
2775-
a \oldconcept{RandomAccessIterator}\iref{random.access.iterators} and
2775+
a \oldconceptref{RandomAccessIterator}\iref{random.access.iterators} and
27762776
the additional requirement that, when \tcode{p} and \tcode{(p + n)} are
27772777
dereferenceable pointer values for some integral value \tcode{n},
27782778
\begin{codeblock}

0 commit comments

Comments
 (0)