Skip to content

Commit 3919fbb

Browse files
committed
Fixup: typo-level repairs of initial transcription
1 parent d5be236 commit 3919fbb

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

source/support.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3883,9 +3883,9 @@
38833883

38843884
// \ref{cmp.concept}, concept \tcode{ThreeWayComparable}
38853885
template<class T, class Cat = partial_ordering>
3886-
concept ThreeWayComparable = see below;
3886+
concept ThreeWayComparable = @\seebelow@;
38873887
template<class T, class U, class Cat = partial_ordering>
3888-
concept ThreeWayComparableWith = see below;
3888+
concept ThreeWayComparableWith = @\seebelow@;
38893889

38903890
// \ref{cmp.result}, result of three-way comparison
38913891
template<class T, class U = T> struct compare_three_way_result;
@@ -3982,7 +3982,7 @@
39823982
static const weak_equality nonequivalent;
39833983

39843984
// comparisons
3985-
friend constexpr bool operator==(weak_equality v, unspecified) noexcept;
3985+
friend constexpr bool operator==(weak_equality v, @\unspec@) noexcept;
39863986
friend constexpr bool operator==(weak_equality v, weak_equality w) noexcept = default;
39873987
friend constexpr weak_equality operator<=>(weak_equality v, @\unspec@) noexcept;
39883988
friend constexpr weak_equality operator<=>(@\unspec@, weak_equality v) noexcept;
@@ -4579,12 +4579,12 @@
45794579
template<class T, class U>
45804580
concept @\placeholder{partially-ordered-with}@ = // \expos
45814581
requires(const remove_reference_t<T>& t, const remove_reference_t<U>& u) {
4582-
{ t < u } -> Boolean;
4583-
{ t > u } -> Boolean;
4582+
{ t < u } -> Boolean;
4583+
{ t > u } -> Boolean;
45844584
{ t <= u } -> Boolean;
45854585
{ t >= u } -> Boolean;
4586-
{ u < t } -> Boolean;
4587-
{ u > t } -> Boolean;
4586+
{ u < t } -> Boolean;
4587+
{ u > t } -> Boolean;
45884588
{ u <= t } -> Boolean;
45894589
{ u >= t } -> Boolean;
45904590
};
@@ -4763,7 +4763,7 @@
47634763
\begin{itemize}
47644764
\item
47654765
If the expression \tcode{std::forward<T>(t) <=> std::forward<U>(u)} results in
4766-
a call to a built-in operator \tcode{<=>} comparing pointers of type P,
4766+
a call to a built-in operator \tcode{<=>} comparing pointers of type \tcode{P},
47674767
returns \tcode{strong_ordering::less}
47684768
if (the converted value of) \tcode{t} precedes \tcode{u}
47694769
in the implementation-defined strict total order\iref{range.cmp}
@@ -4772,7 +4772,7 @@
47724772
if \tcode{u} precedes \tcode{t}, and
47734773
otherwise \tcode{strong_ordering::equal}.
47744774
\item
4775-
Otherwise, equivalent to: return \tcode{std::forward<T>(t) <=> std::forward<U>(u);}
4775+
Otherwise, equivalent to: \tcode{return std::forward<T>(t) <=> std::forward<U>(u);}
47764776
\end{itemize}
47774777
\end{itemdescr}
47784778

source/utilities.tex

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3634,7 +3634,7 @@
36343634

36353635
// \ref{variant.monostate.relops}, \tcode{monostate} relational operators
36363636
constexpr bool operator==(monostate, monostate) noexcept;
3637-
constexpr strong_ordering operator<=>(monostate, monostate) noexcept;
3637+
constexpr strong_ordering operator<=>(monostate, monostate) noexcept;
36383638

36393639
// \ref{variant.specalg}, specialized algorithms
36403640
template<class... Types>
@@ -4720,17 +4720,17 @@
47204720

47214721
\begin{itemdescr}
47224722
\pnum
4723-
\effect
4723+
\effects
47244724
Equivalent to:
47254725
\begin{codeblock}
47264726
if (v.valueless_by_exception() && w.valueless_by_exception())
47274727
return strong_ordering::equal;
47284728
if (v.valueless_by_exception()) return strong_ordering::less;
47294729
if (w.valueless_by_exception()) return strong_ordering::greater;
47304730
if (auto c = v.index() <=> w.index(); c != 0) return c;
4731-
return get<i>(v) <=> get<i>(w);
4731+
return get<@$i$@>(v) <=> get<@$i$@>(w);
47324732
\end{codeblock}
4733-
with \tcode{i} being \tcode{v.index()}.
4733+
with $i$ being \tcode{v.index()}.
47344734
\end{itemdescr}
47354735

47364736
\rSec2[variant.visit]{Visitation}
@@ -6750,13 +6750,12 @@
67506750

67516751
template<class T>
67526752
bool operator==(const shared_ptr<T>& x, nullptr_t) noexcept;
6753-
6753+
template<class T>
6754+
strong_ordering operator<=>(const shared_ptr<T>& x, nullptr_t) noexcept;
67546755

67556756
// \ref{util.smartptr.shared.spec}, \tcode{shared_ptr} specialized algorithms
67566757
template<class T>
67576758
void swap(shared_ptr<T>& a, shared_ptr<T>& b) noexcept;
6758-
template<class T>
6759-
strong_ordering operator<=>(const shared_ptr<T>& x, nullptr_t) noexcept;
67606759

67616760
// \ref{util.smartptr.shared.cast}, \tcode{shared_ptr} casts
67626761
template<class T, class U>

0 commit comments

Comments
 (0)