Skip to content

Commit 537a541

Browse files
committed
fixup: properly index expected<void>
1 parent 59acd67 commit 537a541

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

source/utilities.tex

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7896,12 +7896,12 @@
78967896
template<class T, class E> requires is_void_v<T>
78977897
class expected<T, E> {
78987898
public:
7899-
using @\libmember{value_type}{expected}@ = T;
7900-
using @\libmember{error_type}{expected}@ = E;
7901-
using @\libmember{unexpected_type}{expected}@ = unexpected<E>;
7899+
using @\libmember{value_type}{expected<void>}@ = T;
7900+
using @\libmember{error_type}{expected<void>}@ = E;
7901+
using @\libmember{unexpected_type}{expected<void>}@ = unexpected<E>;
79027902

79037903
template<class U>
7904-
using @\libmember{rebind}{expected}@ = expected<U, error_type>;
7904+
using @\libmember{rebind}{expected<void>}@ = expected<U, error_type>;
79057905

79067906
// \ref{expected.void.ctor}, constructors
79077907
constexpr expected() noexcept;
@@ -7971,7 +7971,7 @@
79717971

79727972
\rSec3[expected.void.ctor]{Constructors}
79737973

7974-
\indexlibraryctor{expected}%
7974+
\indexlibraryctor{expected<void>}%
79757975
\begin{itemdecl}
79767976
constexpr expected() noexcept;
79777977
\end{itemdecl}
@@ -7982,7 +7982,7 @@
79827982
\tcode{has_value()} is \tcode{true}.
79837983
\end{itemdescr}
79847984

7985-
\indexlibraryctor{expected}%
7985+
\indexlibraryctor{expected<void>}%
79867986
\begin{itemdecl}
79877987
constexpr expected(const expected& rhs);
79887988
\end{itemdecl}
@@ -8011,7 +8011,7 @@
80118011
if \tcode{is_trivially_copy_constructible_v<E>} is \tcode{true}.
80128012
\end{itemdescr}
80138013

8014-
\indexlibraryctor{expected}%
8014+
\indexlibraryctor{expected<void>}%
80158015
\begin{itemdecl}
80168016
constexpr expected(expected&& rhs) noexcept(is_nothrow_move_constructible_v<E>);
80178017
\end{itemdecl}
@@ -8041,7 +8041,7 @@
80418041
if \tcode{is_trivially_move_constructible_v<E>} is \tcode{true}.
80428042
\end{itemdescr}
80438043

8044-
\indexlibraryctor{expected}%
8044+
\indexlibraryctor{expected<void>}%
80458045
\begin{itemdecl}
80468046
template<class U, class G>
80478047
constexpr explicit(!is_convertible_v<const G&, E>) expected(const expected<U, G>& rhs);
@@ -8091,7 +8091,7 @@
80918091
Any exception thrown by the initialization of \exposid{unex}.
80928092
\end{itemdescr}
80938093

8094-
\indexlibraryctor{expected}%
8094+
\indexlibraryctor{expected<void>}%
80958095
\begin{itemdecl}
80968096
template<class G>
80978097
constexpr explicit(!is_convertible_v<const G&, E>) expected(const unexpected<G>& e);
@@ -8122,7 +8122,7 @@
81228122
Any exception thrown by the initialization of \exposid{unex}.
81238123
\end{itemdescr}
81248124

8125-
\indexlibraryctor{expected}%
8125+
\indexlibraryctor{expected<void>}%
81268126
\begin{itemdecl}
81278127
constexpr explicit expected(in_place_t) noexcept;
81288128
\end{itemdecl}
@@ -8133,7 +8133,7 @@
81338133
\tcode{has_value()} is \tcode{true}.
81348134
\end{itemdescr}
81358135

8136-
\indexlibraryctor{expected}%
8136+
\indexlibraryctor{expected<void>}%
81378137
\begin{itemdecl}
81388138
template<class... Args>
81398139
constexpr explicit expected(unexpect_t, Args&&... args);
@@ -8158,7 +8158,7 @@
81588158
Any exception thrown by the initialization of \exposid{unex}.
81598159
\end{itemdescr}
81608160

8161-
\indexlibraryctor{expected}%
8161+
\indexlibraryctor{expected<void>}%
81628162
\begin{itemdecl}
81638163
template<class U, class... Args>
81648164
constexpr explicit expected(unexpect_t, initializer_list<U> il, Args&&... args);
@@ -8185,7 +8185,7 @@
81858185

81868186
\rSec3[expected.void.dtor]{Destructor}
81878187

8188-
\indexlibrarydtor{expected}%
8188+
\indexlibrarydtor{expected<void>}%
81898189
\begin{itemdecl}
81908190
constexpr ~expected();
81918191
\end{itemdecl}
@@ -8203,7 +8203,7 @@
82038203

82048204
\rSec3[expected.void.assign]{Assignment}
82058205

8206-
\indexlibrarymember{operator=}{expected}%
8206+
\indexlibrarymember{operator=}{expected<void>}%
82078207
\begin{itemdecl}
82088208
constexpr expected& operator=(const expected& rhs);
82098209
\end{itemdecl}
@@ -8235,7 +8235,7 @@
82358235
\tcode{is_copy_constructible_v<E>} is \tcode{true}.
82368236
\end{itemdescr}
82378237

8238-
\indexlibrarymember{operator=}{expected}%
8238+
\indexlibrarymember{operator=}{expected<void>}%
82398239
\begin{itemdecl}
82408240
constexpr expected& operator=(expected&& rhs) noexcept(@\seebelow@);
82418241
\end{itemdecl}
@@ -8274,7 +8274,7 @@
82748274
\tcode{is_move_assignable_v<E>} is \tcode{true}.
82758275
\end{itemdescr}
82768276

8277-
\indexlibrarymember{operator=}{expected}%
8277+
\indexlibrarymember{operator=}{expected<void>}%
82788278
\begin{itemdecl}
82798279
template<class G>
82808280
constexpr expected& operator=(const unexpected<G>& e);
@@ -8311,7 +8311,7 @@
83118311
\tcode{*this}.
83128312
\end{itemdescr}
83138313

8314-
\indexlibrarymember{emplace}{expected}%
8314+
\indexlibrarymember{emplace}{expected<void>}%
83158315
\begin{itemdecl}
83168316
constexpr void emplace() noexcept;
83178317
\end{itemdecl}
@@ -8325,7 +8325,7 @@
83258325

83268326
\rSec3[expected.void.swap]{Swap}
83278327

8328-
\indexlibrarymember{swap}{expected}%
8328+
\indexlibrarymember{swap}{expected<void>}%
83298329
\begin{itemdecl}
83308330
constexpr void swap(expected& rhs) noexcept(@\seebelow@);
83318331
\end{itemdecl}
@@ -8371,7 +8371,7 @@
83718371
\tcode{is_nothrow_move_constructible_v<E> \&\& is_nothrow_swappable_v<E>}.
83728372
\end{itemdescr}
83738373

8374-
\indexlibrarymember{swap}{expected}%
8374+
\indexlibrarymember{swap}{expected<void>}%
83758375
\begin{itemdecl}
83768376
friend constexpr void swap(expected& x, expected& y) noexcept(noexcept(x.swap(y)));
83778377
\end{itemdecl}
@@ -8384,8 +8384,8 @@
83848384

83858385
\rSec3[expected.void.obs]{Observers}
83868386

8387-
\indexlibrarymember{operator bool}{expected}%
8388-
\indexlibrarymember{has_value}{expected}%
8387+
\indexlibrarymember{operator bool}{expected<void>}%
8388+
\indexlibrarymember{has_value}{expected<void>}%
83898389
\begin{itemdecl}
83908390
constexpr explicit operator bool() const noexcept;
83918391
constexpr bool has_value() const noexcept;
@@ -8397,7 +8397,7 @@
83978397
\exposid{has_val}.
83988398
\end{itemdescr}
83998399

8400-
\indexlibrarymember{operator*}{expected}%
8400+
\indexlibrarymember{operator*}{expected<void>}%
84018401
\begin{itemdecl}
84028402
constexpr void operator*() const noexcept;
84038403
\end{itemdecl}
@@ -8419,7 +8419,7 @@
84198419
\tcode{bad_expected_access(error())} if \tcode{has_value()} is \tcode{false}.
84208420
\end{itemdescr}
84218421

8422-
\indexlibrarymember{value}{expected}%
8422+
\indexlibrarymember{value}{expected<void>}%
84238423
\begin{itemdecl}
84248424
constexpr void value() &&;
84258425
\end{itemdecl}
@@ -8431,7 +8431,7 @@
84318431
if \tcode{has_value()} is \tcode{false}.
84328432
\end{itemdescr}
84338433

8434-
\indexlibrarymember{error}{expected}%
8434+
\indexlibrarymember{error}{expected<void>}%
84358435
\begin{itemdecl}
84368436
constexpr const E& error() const&;
84378437
constexpr E& error() &;
@@ -8447,7 +8447,7 @@
84478447
\exposid{unex}.
84488448
\end{itemdescr}
84498449

8450-
\indexlibrarymember{error}{expected}%
8450+
\indexlibrarymember{error}{expected<void>}%
84518451
\begin{itemdecl}
84528452
constexpr E&& error() &&;
84538453
constexpr const E&& error() const&&;
@@ -8465,7 +8465,7 @@
84658465

84668466
\rSec3[expected.void.eq]{Equality operators}
84678467

8468-
\indexlibrarymember{operator==}{expected}%
8468+
\indexlibrarymember{operator==}{expected<void>}%
84698469
\begin{itemdecl}
84708470
template<class T2, class E2> requires is_void_v<T2>
84718471
friend constexpr bool operator==(const expected& x, const expected<T2, E2>& y);
@@ -8483,7 +8483,7 @@
84838483
otherwise \tcode{x.has_value() || static_cast<bool>(x.error() == y.error())}.
84848484
\end{itemdescr}
84858485

8486-
\indexlibrarymember{operator==}{expected}%
8486+
\indexlibrarymember{operator==}{expected<void>}%
84878487
\begin{itemdecl}
84888488
template<class E2>
84898489
constexpr bool operator==(const expected& x, const unexpected<E2>& e);

0 commit comments

Comments
 (0)