Skip to content

Commit 06b78a1

Browse files
committed
Use cxxdraft-htmlgen macros more.
1 parent 384b3bb commit 06b78a1

15 files changed

+513
-521
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
@@ -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

+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
@@ -344,7 +344,7 @@
344344

345345
\pnum
346346
\remarks
347-
\tcode{is_pod<T>} is a \oldconcept{UnaryTypeTrait}\iref{meta.rqmts}
347+
\tcode{is_pod<T>} is a \oldconceptref{UnaryTypeTrait}\iref{meta.rqmts}
348348
with a base characteristic of \tcode{true_type}
349349
if \tcode{T} is a POD type,
350350
and \tcode{false_type} otherwise.
@@ -528,7 +528,7 @@
528528
If the expression \tcode{TS::value} is well-formed
529529
when treated as an \deflink{unevaluated operand}{expr.context},
530530
then specializations of each of the two templates meet
531-
the \oldconcept{TransformationTrait} requirements with a base characteristic of
531+
the \oldconceptref{TransformationTrait} requirements with a base characteristic of
532532
\tcode{integral_constant<size_t, TS::value>}.
533533
Otherwise, they have no member \tcode{value}.
534534

@@ -556,7 +556,7 @@
556556
Let \tcode{TE} denote \tcode{tuple_element_t<I, T>}
557557
of the cv-unqualified type \tcode{T}.
558558
Then specializations of each of the two templates meet
559-
the \oldconcept{TransformationTrait} requirements
559+
the \oldconceptref{TransformationTrait} requirements
560560
with a member typedef \tcode{type} that names the following type:
561561
\begin{itemize}
562562
\item for the first specialization, \tcode{add_volatile_t<TE>}, and
@@ -596,7 +596,7 @@
596596
Let \tcode{VS} denote \tcode{variant_size<T>}
597597
of the cv-unqualified type \tcode{T}.
598598
Then specializations of each of the two templates meet
599-
the \oldconcept{UnaryTypeTrait} requirements
599+
the \oldconceptref{UnaryTypeTrait} requirements
600600
with a base characteristic of \tcode{integral_constant<size_t, VS::value>}.
601601
\end{itemdescr}
602602

@@ -610,7 +610,7 @@
610610
Let \tcode{VA} denote \tcode{variant_alternative<I, T>}
611611
of the cv-unqualified type \tcode{T}.
612612
Then specializations of each of the two templates meet
613-
the \oldconcept{TransformationTrait} requirements
613+
the \oldconceptref{TransformationTrait} requirements
614614
with a member typedef \tcode{type} that names the following type:
615615
\begin{itemize}
616616
\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
@@ -1687,22 +1687,22 @@
16871687
It holds a state object
16881688
whose type is equal to the template parameter \tcode{stateT}.
16891689
Type \tcode{stateT} shall meet
1690-
the \oldconcept{DefaultConstructible} (\tref{cpp17.defaultconstructible}),
1691-
\oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}),
1692-
\oldconcept{CopyAssignable} (\tref{cpp17.copyassignable}), and
1693-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements.
1690+
the \oldconceptref{DefaultConstructible} (\tref{cpp17.defaultconstructible}),
1691+
\oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}),
1692+
\oldconceptref{CopyAssignable} (\tref{cpp17.copyassignable}), and
1693+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements.
16941694
If \tcode{is_trivially_copy_constructible_v<stateT>} is \tcode{true},
16951695
then \tcode{fpos<stateT>} has a trivial copy constructor.
16961696
If \tcode{is_trivially_copy_assignable_v<stateT>} is \tcode{true},
16971697
then \tcode{fpos<stateT>} has a trivial copy assignment operator.
16981698
If \tcode{is_trivially_destructible_v<stateT>} is \tcode{true},
16991699
then \tcode{fpos<stateT>} has a trivial destructor.
17001700
All specializations of \tcode{fpos} meet
1701-
the \oldconcept{DefaultConstructible},
1702-
\oldconcept{CopyConstructible},
1703-
\oldconcept{CopyAssignable},
1704-
\oldconcept{Destructible},
1705-
and \oldconcept{EqualityComparable} (\tref{cpp17.equalitycomparable}) requirements.
1701+
the \oldconceptref{DefaultConstructible},
1702+
\oldconceptref{CopyConstructible},
1703+
\oldconceptref{CopyAssignable},
1704+
\oldconceptref{Destructible},
1705+
and \oldconceptref{EqualityComparable} (\tref{cpp17.equalitycomparable}) requirements.
17061706
In addition, the expressions shown in \tref{fpos.operations}
17071707
are valid and have the indicated semantics.
17081708
In that table,
@@ -12954,7 +12954,7 @@
1295412954

1295512955
\pnum
1295612956
\tcode{Allocator} shall meet
12957-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
12957+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1295812958

1295912959
\pnum
1296012960
\begin{example}
@@ -13247,7 +13247,7 @@
1324713247

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

1325313253
\pnum
@@ -13261,7 +13261,7 @@
1326113261

1326213262
\pnum
1326313263
Template parameters named \tcode{Allocator} shall meet
13264-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
13264+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1326513265

1326613266
\rSec2[fs.filesystem.syn]{Header \tcode{<filesystem>} synopsis}
1326713267

@@ -14074,7 +14074,7 @@
1407414074
\item \tcode{basic_string_view<EcharT, traits>}. A function
1407514075
argument \tcode{const Source\&} \tcode{source} shall have an
1407614076
effective range \range{source.begin()}{source.end()}.
14077-
\item A type meeting the \oldconcept{InputIterator} requirements that iterates over an NTCTS\@.
14077+
\item A type meeting the \oldconceptref{InputIterator} requirements that iterates over an NTCTS\@.
1407814078
The value type shall be an encoded character type. A function argument
1407914079
\tcode{const Source\&} \tcode{source} shall have an effective range
1408014080
\range{source}{end} where \tcode{end} is the first
@@ -16554,7 +16554,7 @@
1655416554

1655516555
\pnum
1655616556
\tcode{directory_iterator} meets the
16557-
\oldconcept{InputIterator} requirements\iref{input.iterators}.
16557+
\oldconceptref{InputIterator} requirements\iref{input.iterators}.
1655816558

1655916559
\pnum
1656016560
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
@@ -1854,7 +1854,7 @@
18541854
}\\
18551855
\end{oldconcepttable}
18561856

1857-
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconcept{MoveConstructible})}{cpp17.copyconstructible}
1857+
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconceptref{MoveConstructible})}{cpp17.copyconstructible}
18581858
{p{1in}p{4.15in}}
18591859
\topline
18601860
\hdstyle{Expression} & \hdstyle{Post-condition} \\ \capsep
@@ -1881,7 +1881,7 @@
18811881
}\\
18821882
\end{oldconcepttable}
18831883

1884-
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconcept{MoveAssignable})}{cpp17.copyassignable}
1884+
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconceptref{MoveAssignable})}{cpp17.copyassignable}
18851885
{p{1in}p{1in}p{1in}p{1.9in}}
18861886
\topline
18871887
\hdstyle{Expression} & \hdstyle{Return type} & \hdstyle{Return value} & \hdstyle{Post-condition} \\ \capsep
@@ -1895,7 +1895,7 @@
18951895
\tcode{u.\~T()} & All resources owned by \tcode{u} are reclaimed, no exception is propagated. \\ \rowsep
18961896
\multicolumn{2}{|l|}{
18971897
\begin{tailnote}
1898-
Array types and non-object types are not \oldconcept{Destructible}.
1898+
Array types and non-object types are not \oldconceptref{Destructible}.
18991899
\end{tailnote}
19001900
} \\
19011901
\end{oldconcepttable}
@@ -1974,7 +1974,7 @@
19741974
// for rvalues and lvalues
19751975
}
19761976

1977-
// Preconditions: \tcode{T} meets the \oldconcept{Swappable} requirements.
1977+
// Preconditions: \tcode{T} meets the \oldconceptref{Swappable} requirements.
19781978
template<class T>
19791979
void lv_swap(T& t1, T& t2) {
19801980
using std::swap;
@@ -2011,9 +2011,9 @@
20112011
A \oldconcept{NullablePointer} type is a pointer-like type that supports null values.
20122012
A type \tcode{P} meets the \oldconcept{\-Nullable\-Pointer} requirements if
20132013
\begin{itemize}
2014-
\item \tcode{P} meets the \oldconcept{EqualityComparable},
2015-
\oldconcept{DefaultConstructible}, \oldconcept{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
2016-
\oldconcept{Swappable}, and \oldconcept{Destructible} requirements,
2014+
\item \tcode{P} meets the \oldconceptref{EqualityComparable},
2015+
\oldconceptref{DefaultConstructible}, \oldconceptref{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
2016+
\oldconceptref{Swappable}, and \oldconceptref{Destructible} requirements,
20172017

20182018
\item the expressions shown in \tref{cpp17.nullablepointer} are
20192019
valid and have the indicated semantics, and
@@ -2089,8 +2089,8 @@
20892089
A type \tcode{H} meets the \defnoldconcept{Hash} requirements if
20902090
\begin{itemize}
20912091
\item it is a function object type\iref{function.objects},
2092-
\item it meets the \oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2093-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements, and
2092+
\item it meets the \oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2093+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements, and
20942094
\item the expressions shown in \tref{cpp17.hash}
20952095
are valid and have the indicated semantics.
20962096
\end{itemize}
@@ -2774,7 +2774,7 @@
27742774
\tcode{true_type} only if an allocator of type \tcode{X} should be copied
27752775
when the client container is copy-assigned;
27762776
if so, \tcode{X} shall meet
2777-
the \oldconcept{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
2777+
the \oldconceptref{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
27782778
the copy operation shall not throw exceptions.
27792779

27802780
\pnum
@@ -2796,7 +2796,7 @@
27962796
\tcode{true_type} only if an allocator of type \tcode{X} should be moved
27972797
when the client container is move-assigned;
27982798
if so, \tcode{X} shall meet
2799-
the \oldconcept{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
2799+
the \oldconceptref{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
28002800
the move operation shall not throw exceptions.
28012801

28022802
\pnum
@@ -2818,7 +2818,7 @@
28182818
\tcode{true_type} only if an allocator of type \tcode{X} should be swapped
28192819
when the client container is swapped;
28202820
if so,
2821-
\tcode{X} shall meet the \oldconcept{Swappable} requirements\iref{swappable.requirements} and
2821+
\tcode{X} shall meet the \oldconceptref{Swappable} requirements\iref{swappable.requirements} and
28222822
the \tcode{swap} operation shall not throw exceptions.
28232823

28242824
\pnum
@@ -2848,15 +2848,15 @@
28482848

28492849
\pnum
28502850
An allocator type \tcode{X} shall meet the
2851-
\oldconcept{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
2851+
\oldconceptref{CopyConstructible} requirements (\tref{cpp17.copyconstructible}).
28522852
The \tcode{XX::pointer}, \tcode{XX::const_pointer}, \tcode{XX::void_pointer}, and
28532853
\tcode{XX::const_void_pointer} types shall meet the
28542854
\oldconcept{Nullable\-Pointer} requirements (\tref{cpp17.nullablepointer}).
28552855
No constructor,
28562856
comparison operator function, copy operation, move operation, or swap operation on
28572857
these pointer types shall exit via an exception. \tcode{XX::pointer} and \tcode{XX::const_pointer} shall also
28582858
meet the requirements for
2859-
a \oldconcept{RandomAccessIterator}\iref{random.access.iterators} and
2859+
a \oldconceptref{RandomAccessIterator}\iref{random.access.iterators} and
28602860
the additional requirement that, when \tcode{p} and \tcode{(p + n)} are
28612861
dereferenceable pointer values for some integral value \tcode{n},
28622862
\begin{codeblock}

0 commit comments

Comments
 (0)