Skip to content

Commit 41d4237

Browse files
committed
Use cxxdraft-htmlgen macros more.
1 parent c32395d commit 41d4237

15 files changed

+514
-522
lines changed

source/algorithms.tex

Lines changed: 97 additions & 97 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{add_volatile_t<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{add_volatile_t<VA::type>}, and

source/iostreams.tex

Lines changed: 14 additions & 14 deletions
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,
@@ -12955,7 +12955,7 @@
1295512955

1295612956
\pnum
1295712957
\tcode{Allocator} shall meet
12958-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
12958+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1295912959

1296012960
\pnum
1296112961
\begin{example}
@@ -13248,7 +13248,7 @@
1324813248

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

1325413254
\pnum
@@ -13262,7 +13262,7 @@
1326213262

1326313263
\pnum
1326413264
Template parameters named \tcode{Allocator} shall meet
13265-
the \oldconcept{Allocator} requirements\iref{allocator.requirements.general}.
13265+
the \oldconceptref{Allocator} requirements\iref{allocator.requirements.general}.
1326613266

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

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

1655616556
\pnum
1655716557
\tcode{directory_iterator} meets the
16558-
\oldconcept{InputIterator} requirements\iref{input.iterators}.
16558+
\oldconceptref{InputIterator} requirements\iref{input.iterators}.
1655916559

1656016560
\pnum
1656116561
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
@@ -1862,7 +1862,7 @@
18621862
}\\
18631863
\end{oldconcepttable}
18641864

1865-
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconcept{MoveConstructible})}{cpp17.copyconstructible}
1865+
\begin{oldconcepttable}{CopyConstructible}{ (in addition to \oldconceptref{MoveConstructible})}{cpp17.copyconstructible}
18661866
{p{1in}p{4.15in}}
18671867
\topline
18681868
\hdstyle{Expression} & \hdstyle{Post-condition} \\ \capsep
@@ -1889,7 +1889,7 @@
18891889
}\\
18901890
\end{oldconcepttable}
18911891

1892-
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconcept{MoveAssignable})}{cpp17.copyassignable}
1892+
\begin{oldconcepttable}{CopyAssignable}{ (in addition to \oldconceptref{MoveAssignable})}{cpp17.copyassignable}
18931893
{p{1in}p{1in}p{1in}p{1.9in}}
18941894
\topline
18951895
\hdstyle{Expression} & \hdstyle{Return type} & \hdstyle{Return value} & \hdstyle{Post-condition} \\ \capsep
@@ -1903,7 +1903,7 @@
19031903
\tcode{u.\~T()} & All resources owned by \tcode{u} are reclaimed, no exception is propagated. \\ \rowsep
19041904
\multicolumn{2}{|l|}{
19051905
\begin{tailnote}
1906-
Array types and non-object types are not \oldconcept{Destructible}.
1906+
Array types and non-object types are not \oldconceptref{Destructible}.
19071907
\end{tailnote}
19081908
} \\
19091909
\end{oldconcepttable}
@@ -1982,7 +1982,7 @@
19821982
// for rvalues and lvalues
19831983
}
19841984

1985-
// Preconditions: \tcode{T} meets the \oldconcept{Swappable} requirements.
1985+
// Preconditions: \tcode{T} meets the \oldconceptref{Swappable} requirements.
19861986
template<class T>
19871987
void lv_swap(T& t1, T& t2) {
19881988
using std::swap;
@@ -2019,9 +2019,9 @@
20192019
A \oldconcept{NullablePointer} type is a pointer-like type that supports null values.
20202020
A type \tcode{P} meets the \oldconcept{\-Nullable\-Pointer} requirements if
20212021
\begin{itemize}
2022-
\item \tcode{P} meets the \oldconcept{EqualityComparable},
2023-
\oldconcept{DefaultConstructible}, \oldconcept{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
2024-
\oldconcept{Swappable}, and \oldconcept{Destructible} requirements,
2022+
\item \tcode{P} meets the \oldconceptref{EqualityComparable},
2023+
\oldconceptref{DefaultConstructible}, \oldconceptref{CopyConstructible}, \oldconcept{\-Copy\-Assign\-able},
2024+
\oldconceptref{Swappable}, and \oldconceptref{Destructible} requirements,
20252025

20262026
\item the expressions shown in \tref{cpp17.nullablepointer} are
20272027
valid and have the indicated semantics, and
@@ -2097,8 +2097,8 @@
20972097
A type \tcode{H} meets the \defnoldconcept{Hash} requirements if
20982098
\begin{itemize}
20992099
\item it is a function object type\iref{function.objects},
2100-
\item it meets the \oldconcept{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2101-
\oldconcept{Destructible} (\tref{cpp17.destructible}) requirements, and
2100+
\item it meets the \oldconceptref{CopyConstructible} (\tref{cpp17.copyconstructible}) and
2101+
\oldconceptref{Destructible} (\tref{cpp17.destructible}) requirements, and
21022102
\item the expressions shown in \tref{cpp17.hash}
21032103
are valid and have the indicated semantics.
21042104
\end{itemize}
@@ -2782,7 +2782,7 @@
27822782
\tcode{true_type} only if an allocator of type \tcode{X} should be copied
27832783
when the client container is copy-assigned;
27842784
if so, \tcode{X} shall meet
2785-
the \oldconcept{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
2785+
the \oldconceptref{CopyAssignable} requirements (\tref{cpp17.copyassignable}) and
27862786
the copy operation shall not throw exceptions.
27872787

27882788
\pnum
@@ -2804,7 +2804,7 @@
28042804
\tcode{true_type} only if an allocator of type \tcode{X} should be moved
28052805
when the client container is move-assigned;
28062806
if so, \tcode{X} shall meet
2807-
the \oldconcept{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
2807+
the \oldconceptref{MoveAssignable} requirements (\tref{cpp17.moveassignable}) and
28082808
the move operation shall not throw exceptions.
28092809

28102810
\pnum
@@ -2826,7 +2826,7 @@
28262826
\tcode{true_type} only if an allocator of type \tcode{X} should be swapped
28272827
when the client container is swapped;
28282828
if so,
2829-
\tcode{X} shall meet the \oldconcept{Swappable} requirements\iref{swappable.requirements} and
2829+
\tcode{X} shall meet the \oldconceptref{Swappable} requirements\iref{swappable.requirements} and
28302830
the \tcode{swap} operation shall not throw exceptions.
28312831

28322832
\pnum
@@ -2856,15 +2856,15 @@
28562856

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

0 commit comments

Comments
 (0)