Skip to content

Commit ef26cf4

Browse files
committed
Use cxxdraft-htmlgen macros more.
1 parent eafe7fe commit ef26cf4

15 files changed

+511
-520
lines changed

Diff for: source/algorithms.tex

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

Diff for: 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}

Diff for: 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

Diff for: 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}

Diff for: source/future.tex

+5-5
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350

351351
\pnum
352352
\remarks
353-
\tcode{is_pod<T>} is a \oldconcept{UnaryTypeTrait}\iref{meta.rqmts}
353+
\tcode{is_pod<T>} is a \oldconceptref{UnaryTypeTrait}\iref{meta.rqmts}
354354
with a base characteristic of \tcode{true_type}
355355
if \tcode{T} is a POD type,
356356
and \tcode{false_type} otherwise.
@@ -534,7 +534,7 @@
534534
If the expression \tcode{TS::value} is well-formed
535535
when treated as an \deflink{unevaluated operand}{expr.context},
536536
then specializations of each of the two templates meet
537-
the \oldconcept{TransformationTrait} requirements with a base characteristic of
537+
the \oldconceptref{TransformationTrait} requirements with a base characteristic of
538538
\tcode{integral_constant<size_t, TS::value>}.
539539
Otherwise, they have no member \tcode{value}.
540540

@@ -562,7 +562,7 @@
562562
Let \tcode{TE} denote \tcode{tuple_element_t<I, T>}
563563
of the cv-unqualified type \tcode{T}.
564564
Then specializations of each of the two templates meet
565-
the \oldconcept{TransformationTrait} requirements
565+
the \oldconceptref{TransformationTrait} requirements
566566
with a member typedef \tcode{type} that names the following type:
567567
\begin{itemize}
568568
\item for the first specialization, \tcode{add_volatile_t<TE>}, and
@@ -602,7 +602,7 @@
602602
Let \tcode{VS} denote \tcode{variant_size<T>}
603603
of the cv-unqualified type \tcode{T}.
604604
Then specializations of each of the two templates meet
605-
the \oldconcept{UnaryTypeTrait} requirements
605+
the \oldconceptref{UnaryTypeTrait} requirements
606606
with a base characteristic of \tcode{integral_constant<size_t, VS::value>}.
607607
\end{itemdescr}
608608

@@ -616,7 +616,7 @@
616616
Let \tcode{VA} denote \tcode{variant_alternative<I, T>}
617617
of the cv-unqualified type \tcode{T}.
618618
Then specializations of each of the two templates meet
619-
the \oldconcept{TransformationTrait} requirements
619+
the \oldconceptref{TransformationTrait} requirements
620620
with a member typedef \tcode{type} that names the following type:
621621
\begin{itemize}
622622
\item for the first specialization, \tcode{add_volatile_t<VA::type>}, and

Diff for: 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,
@@ -12945,7 +12945,7 @@
1294512945

1294612946
\pnum
1294712947
\tcode{Allocator} shall meet
12948-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
12948+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1294912949

1295012950
\pnum
1295112951
\begin{example}
@@ -13238,7 +13238,7 @@
1323813238

1323913239
\pnum
1324013240
Template parameters named \tcode{InputIterator} shall meet the
13241-
\oldconcept{InputIterator} requirements\iref{input.iterators} and shall
13241+
\oldconceptref{InputIterator} requirements\iref{input.iterators} and shall
1324213242
have a value type that is one of the encoded character types.
1324313243

1324413244
\pnum
@@ -13252,7 +13252,7 @@
1325213252

1325313253
\pnum
1325413254
Template parameters named \tcode{Allocator} shall meet
13255-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
13255+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1325613256

1325713257
\rSec2[fs.filesystem.syn]{Header \tcode{<filesystem>} synopsis}
1325813258

@@ -14065,7 +14065,7 @@
1406514065
\item \tcode{basic_string_view<EcharT, traits>}. A function
1406614066
argument \tcode{const Source\&} \tcode{source} shall have an
1406714067
effective range \range{source.begin()}{source.end()}.
14068-
\item A type meeting the \oldconcept{InputIterator} requirements that iterates over an NTCTS\@.
14068+
\item A type meeting the \oldconceptref{InputIterator} requirements that iterates over an NTCTS\@.
1406914069
The value type shall be an encoded character type. A function argument
1407014070
\tcode{const Source\&} \tcode{source} shall have an effective range
1407114071
\range{source}{end} where \tcode{end} is the first
@@ -16545,7 +16545,7 @@
1654516545

1654616546
\pnum
1654716547
\tcode{directory_iterator} meets the
16548-
\oldconcept{InputIterator} requirements\iref{input.iterators}.
16548+
\oldconceptref{InputIterator} requirements\iref{input.iterators}.
1654916549

1655016550
\pnum
1655116551
If an iterator of type \tcode{directory_iterator} reports an error or

Diff for: source/lib-intro.tex

+14-14
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@
18091809
}\\
18101810
\end{oldconcepttable}
18111811

1812-
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconcept{MoveConstructible})}{cpp17.copyconstructible}
1812+
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconceptref{MoveConstructible})}{cpp17.copyconstructible}
18131813
{p{1in}p{4.15in}}
18141814
\topline
18151815
\hdstyle{Expression} & \hdstyle{Post-condition} \\ \capsep
@@ -1836,7 +1836,7 @@
18361836
}\\
18371837
\end{oldconcepttable}
18381838

1839-
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconcept{MoveAssignable})}{cpp17.copyassignable}
1839+
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconceptref{MoveAssignable})}{cpp17.copyassignable}
18401840
{p{1in}p{1in}p{1in}p{1.9in}}
18411841
\topline
18421842
\hdstyle{Expression} & \hdstyle{Return type} & \hdstyle{Return value} & \hdstyle{Post-condition} \\ \capsep
@@ -1850,7 +1850,7 @@
18501850
\tcode{u.\~T()} & All resources owned by \tcode{u} are reclaimed, no exception is propagated. \\ \rowsep
18511851
\multicolumn{2}{|l|}{
18521852
\begin{tailnote}
1853-
Array types and non-object types are not \oldconcept{Destructible}.
1853+
Array types and non-object types are not \oldconceptref{Destructible}.
18541854
\end{tailnote}
18551855
} \\
18561856
\end{oldconcepttable}
@@ -1929,7 +1929,7 @@
19291929
// for rvalues and lvalues
19301930
}
19311931

1932-
// Preconditions: \tcode{T} meets the \oldconcept{Swappable} requirements.
1932+
// Preconditions: \tcode{T} meets the \oldconceptref{Swappable} requirements.
19331933
template<class T>
19341934
void lv_swap(T& t1, T& t2) {
19351935
using std::swap;
@@ -1966,9 +1966,9 @@
19661966
A \oldconcept{NullablePointer} type is a pointer-like type that supports null values.
19671967
A type \tcode{P} meets the \oldconcept{\-Nullable\-Pointer} requirements if
19681968
\begin{itemize}
1969-
\item \tcode{P} meets the \oldconcept{EqualityComparable},
1970-
\oldconcept{DefaultConstructible}, \oldconcept{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
1971-
\oldconcept{Swappable}, and \oldconcept{Destructible} requirements,
1969+
\item \tcode{P} meets the \oldconceptref{EqualityComparable},
1970+
\oldconceptref{DefaultConstructible}, \oldconceptref{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
1971+
\oldconceptref{Swappable}, and \oldconceptref{Destructible} requirements,
19721972

19731973
\item the expressions shown in \tref{cpp17.nullablepointer} are
19741974
valid and have the indicated semantics, and
@@ -2044,8 +2044,8 @@
20442044
A type \tcode{H} meets the \defnoldconcept{Hash} requirements if
20452045
\begin{itemize}
20462046
\item it is a function object type\iref{function.objects},
2047-
\item it meets the \oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2048-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements, and
2047+
\item it meets the \oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2048+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements, and
20492049
\item the expressions shown in \tref{cpp17.hash}
20502050
are valid and have the indicated semantics.
20512051
\end{itemize}
@@ -2729,7 +2729,7 @@
27292729
\tcode{true_type} only if an allocator of type \tcode{X} should be copied
27302730
when the client container is copy-assigned;
27312731
if so, \tcode{X} shall meet
2732-
the \oldconcept{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
2732+
the \oldconceptref{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
27332733
the copy operation shall not throw exceptions.
27342734

27352735
\pnum
@@ -2751,7 +2751,7 @@
27512751
\tcode{true_type} only if an allocator of type \tcode{X} should be moved
27522752
when the client container is move-assigned;
27532753
if so, \tcode{X} shall meet
2754-
the \oldconcept{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
2754+
the \oldconceptref{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
27552755
the move operation shall not throw exceptions.
27562756

27572757
\pnum
@@ -2773,7 +2773,7 @@
27732773
\tcode{true_type} only if an allocator of type \tcode{X} should be swapped
27742774
when the client container is swapped;
27752775
if so,
2776-
\tcode{X} shall meet the \oldconcept{Swappable} requirements\iref{swappable.requirements} and
2776+
\tcode{X} shall meet the \oldconceptref{Swappable} requirements\iref{swappable.requirements} and
27772777
the \tcode{swap} operation shall not throw exceptions.
27782778

27792779
\pnum
@@ -2803,15 +2803,15 @@
28032803

28042804
\pnum
28052805
An allocator type \tcode{X} shall meet the
2806-
\oldconcept{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
2806+
\oldconceptref{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
28072807
The \tcode{XX::pointer}, \tcode{XX::const_pointer}, \tcode{XX::void_pointer}, and
28082808
\tcode{XX::const_void_pointer} types shall meet the
28092809
\oldconcept{Nullable\-Pointer} requirements (\tref{cpp17.nullablepointer}).
28102810
No constructor,
28112811
comparison operator function, copy operation, move operation, or swap operation on
28122812
these pointer types shall exit via an exception. \tcode{XX::pointer} and \tcode{XX::const_pointer} shall also
28132813
meet the requirements for
2814-
a \oldconcept{RandomAccessIterator}\iref{random.access.iterators} and
2814+
a \oldconceptref{RandomAccessIterator}\iref{random.access.iterators} and
28152815
the additional requirement that, when \tcode{p} and \tcode{(p + n)} are
28162816
dereferenceable pointer values for some integral value \tcode{n},
28172817
\begin{codeblock}

0 commit comments

Comments
 (0)