Skip to content

Commit 59acd67

Browse files
committed
fixup: punctuation, indexing, etc.
1 parent 54358d1 commit 59acd67

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

source/utilities.tex

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6634,7 +6634,7 @@
66346634
Any exception thrown by the initialization of \exposid{val}.
66356635
\end{itemdescr}
66366636

6637-
\rSec4[expected.un.observe]{Observers}
6637+
\rSec4[expected.un.obs]{Observers}
66386638

66396639
\indexlibrarymember{value}{unexpected}%
66406640
\begin{itemdecl}
@@ -6692,7 +6692,7 @@
66926692
Equivalent to \tcode{x.swap(y)}.
66936693
\end{itemdescr}
66946694

6695-
\rSec4[expected.un.eq]{Equality operators}
6695+
\rSec4[expected.un.eq]{Equality operator}
66966696

66976697
\indexlibrarymember{operator==}{unexpected}%
66986698
\begin{itemdecl}
@@ -6943,10 +6943,8 @@
69436943
\pnum
69446944
When \tcode{T} is not \cv{} \tcode{void}, it shall meet
69456945
the \oldconcept{Destructible} requirements (\tref{cpp17.destructible}).
6946-
6947-
\pnum
69486946
\tcode{E} shall meet
6949-
the \oldconcept{Destructible} requirements (\tref{cpp17.destructible}).
6947+
the \oldconcept{Destructible} requirements.
69506948

69516949
\rSec3[expected.object.ctor]{Constructors}
69526950

@@ -7054,7 +7052,7 @@
70547052
This constructor is trivial if
70557053
\begin{itemize}
70567054
\item
7057-
\tcode{is_trivially_move_constructible_v<T>} is \tcode{true}; and
7055+
\tcode{is_trivially_move_constructible_v<T>} is \tcode{true} and
70587056
\item
70597057
\tcode{is_trivially_move_constructible_v<E>} is \tcode{true}.
70607058
\end{itemize}
@@ -7323,7 +7321,7 @@
73237321
This subclause makes use of the following exposition-only function:
73247322
\begin{codeblock}
73257323
template<class T, class U, class... Args>
7326-
constexpr void @\exposid{reinit-expected}@(T& newval, U& oldval, Args&&... args) {
7324+
constexpr void @\exposid{reinit-expected}@(T& newval, U& oldval, Args&&... args) { // \expos
73277325
if constexpr (is_nothrow_constructible_v<T, Args...>) {
73287326
destroy_at(addressof(oldval));
73297327
construct_at(addressof(newval), std::forward<Args>(args)...);
@@ -7357,12 +7355,12 @@
73577355
If \tcode{this->has_value() \&\& rhs.has_value()} is \tcode{true},
73587356
equivalent to \tcode{\exposid{val} = *rhs}.
73597357
\item
7360-
Otherwise, if \tcode{this->has_value()} is \tcode{true}, equivalent to
7358+
Otherwise, if \tcode{this->has_value()} is \tcode{true}, equivalent to:
73617359
\begin{codeblock}
73627360
@\exposid{reinit-expected}@(@\exposid{unex}@, @\exposid{val}@, rhs.error())
73637361
\end{codeblock}
73647362
\item
7365-
Otherwise, if \tcode{rhs.has_value()} is \tcode{true}, equivalent to
7363+
Otherwise, if \tcode{rhs.has_value()} is \tcode{true}, equivalent to:
73667364
\begin{codeblock}
73677365
@\exposid{reinit-expected}@(@\exposid{val}@, @\exposid{unex}@, *rhs)
73687366
\end{codeblock}
@@ -7419,12 +7417,12 @@
74197417
If \tcode{this->has_value() \&\& rhs.has_value()} is \tcode{true},
74207418
equivalent to \tcode{\exposid{val} = std::move(*rhs)}.
74217419
\item
7422-
Otherwise, if \tcode{this->has_value()} is \tcode{true}, equivalent to
7420+
Otherwise, if \tcode{this->has_value()} is \tcode{true}, equivalent to:
74237421
\begin{codeblock}
74247422
@\exposid{reinit-expected}@(@\exposid{unex}@, @\exposid{val}@, std::move(rhs.error()))
74257423
\end{codeblock}
74267424
\item
7427-
Otherwise, if \tcode{rhs.has_value()} is \tcode{true}, equivalent to
7425+
Otherwise, if \tcode{rhs.has_value()} is \tcode{true}, equivalent to:
74287426
\begin{codeblock}
74297427
@\exposid{reinit-expected}@(@\exposid{val}@, @\exposid{unex}@, std::move(*rhs))
74307428
\end{codeblock}
@@ -7456,7 +7454,7 @@
74567454
\item
74577455
\tcode{is_same_v<expected, remove_cvref_t<U>>} is \tcode{false}; and
74587456
\item
7459-
\tcode{remove_cvref_t<U>} is not a specialization of unexpected; and
7457+
\tcode{remove_cvref_t<U>} is not a specialization of \tcode{unexpected}; and
74607458
\item
74617459
\tcode{is_constructible_v<T, U>} is \tcode{true}; and
74627460
\item
@@ -7474,7 +7472,7 @@
74747472
If \tcode{has_value()} is \tcode{true},
74757473
equivalent to: \tcode{\exposid{val} = std::forward<U>(v);}
74767474
\item
7477-
Otherwise, equivalent to
7475+
Otherwise, equivalent to:
74787476
\begin{codeblock}
74797477
@\exposid{reinit-expected}@(@\exposid{val}@, @\exposid{unex}@, std::forward<U>(v));
74807478
@\exposid{has_val}@ = true;
@@ -7503,7 +7501,7 @@
75037501
\constraints
75047502
\begin{itemize}
75057503
\item
7506-
\tcode{is_constructible_v<E, GF>} is \tcode{true}.
7504+
\tcode{is_constructible_v<E, GF>} is \tcode{true}; and
75077505
\item
75087506
\tcode{is_assignable_v<E\&, GF>} is \tcode{true}; and
75097507
\item
@@ -7515,7 +7513,7 @@
75157513
\effects
75167514
\begin{itemize}
75177515
\item
7518-
If \tcode{has_value()} is \tcode{true}, equivalent to
7516+
If \tcode{has_value()} is \tcode{true}, equivalent to:
75197517
\begin{codeblock}
75207518
@\exposid{reinit-expected}@(@\exposid{unex}@, @\exposid{val}@, std::forward<GF>(e.value()));
75217519
@\exposid{has_val}@ = false;
@@ -7593,9 +7591,9 @@
75937591
\constraints
75947592
\begin{itemize}
75957593
\item
7596-
\tcode{is_swappable_v<T>;} is \tcode{true} and
7594+
\tcode{is_swappable_v<T>} is \tcode{true} and
75977595
\item
7598-
\tcode{is_swappable_v<E>;} is \tcode{true} and
7596+
\tcode{is_swappable_v<E>} is \tcode{true} and
75997597
\item
76007598
\tcode{is_move_constructible_v<T> \&\& is_move_constructible_v<E>}
76017599
is \tcode{true}, and
@@ -7625,7 +7623,7 @@
76257623
\begin{codeblock}
76267624
if constexpr (is_nothrow_move_constructible_v<E>) {
76277625
E tmp(std::move(rhs.@\exposid{unex}@));
7628-
destroy_at(addressof(rhs.unex));
7626+
destroy_at(addressof(rhs.@\exposid{unex}@));
76297627
try {
76307628
construct_at(addressof(rhs.@\exposid{val}@), std::move(@\exposid{val}@));
76317629
destroy_at(addressof(@\exposid{val}@));
@@ -7638,7 +7636,7 @@
76387636
T tmp(std::move(@\exposid{val}@));
76397637
destroy_at(addressof(@\exposid{val}@));
76407638
try {
7641-
construct_at(addressof(@\exposid{unex}@), std::move(rhs.unex));
7639+
construct_at(addressof(@\exposid{unex}@), std::move(rhs.@\exposid{unex}@));
76427640
destroy_at(addressof(rhs.@\exposid{unex}@));
76437641
construct_at(addressof(rhs.@\exposid{val}@), std::move(tmp));
76447642
} catch (...) {
@@ -7652,7 +7650,7 @@
76527650

76537651
\pnum
76547652
\throws
7655-
Any exception thrown by the expressions in the \effects.
7653+
Any exception thrown by the expressions in the \Fundescx{Effects}.
76567654

76577655
\pnum
76587656
\remarks
@@ -7845,7 +7843,7 @@
78457843
\begin{itemdescr}
78467844
\pnum
78477845
\mandates
7848-
The expressions \tcode{*x == *y} and \tcode{x.error()== y.error()}
7846+
The expressions \tcode{*x == *y} and \tcode{x.error() == y.error()}
78497847
are well-formed and their results are convertible to \tcode{bool}.
78507848

78517849
\pnum
@@ -8030,7 +8028,7 @@
80308028

80318029
\pnum
80328030
\ensures
8033-
\tcode{rhs.has_value()} is unchanged,
8031+
\tcode{rhs.has_value()} is unchanged;
80348032
\tcode{rhs.has_value() == this->has_value()} is \tcode{true}.
80358033

80368034
\pnum
@@ -8074,7 +8072,7 @@
80748072
is \tcode{false}; and
80758073
\item
80768074
\tcode{is_constructible_v<unexpected<E>, const expected<U, G>>}
8077-
is \tcode{false}; and
8075+
is \tcode{false}.
80788076
\end{itemize}
80798077

80808078
\pnum
@@ -8085,7 +8083,7 @@
80858083

80868084
\pnum
80878085
\ensures
8088-
\tcode{rhs.has_value()} is unchanged,
8086+
\tcode{rhs.has_value()} is unchanged;
80898087
\tcode{rhs.has_value() == this->has_value()} is \tcode{true}.
80908088

80918089
\pnum
@@ -8221,7 +8219,7 @@
82218219
equivalent to: \tcode{construct_at(addressof(\exposid{unex}), rhs.\exposid{unex}); \exposid{has_val} = false;}
82228220
\item
82238221
Otherwise, if \tcode{rhs.has_value()} is \tcode{true},
8224-
destroys \exposid{unex} and sets \exposid{has_val} to true.
8222+
destroys \exposid{unex} and sets \exposid{has_val} to \tcode{true}.
82258223
\item
82268224
Otherwise, equivalent to \tcode{\exposid{unex} = rhs.error()}.
82278225
\end{itemize}
@@ -8365,7 +8363,7 @@
83658363

83668364
\pnum
83678365
\throws
8368-
Any exception thrown by the expressions in the \effects.
8366+
Any exception thrown by the expressions in the \Fundescx{Effects}.
83698367

83708368
\pnum
83718369
\remarks
@@ -8433,6 +8431,7 @@
84338431
if \tcode{has_value()} is \tcode{false}.
84348432
\end{itemdescr}
84358433

8434+
\indexlibrarymember{error}{expected}%
84368435
\begin{itemdecl}
84378436
constexpr const E& error() const&;
84388437
constexpr E& error() &;

0 commit comments

Comments
 (0)