From a083667a9640e97729a47f80f7607351ec89f367 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 12 May 2019 19:19:55 +0300 Subject: [PATCH] Apply corrections from #10. Closes #10. --- doc/html/variant2.html | 26 ++++++++++++++++++-------- doc/variant2/reference.adoc | 14 ++++++++++---- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/doc/html/variant2.html b/doc/html/variant2.html index 9019e21..94c8f3a 100644 --- a/doc/html/variant2.html +++ b/doc/html/variant2.html @@ -1103,6 +1103,10 @@ public: } // namespace boost +
+

In the descriptions that follow, let i be in the range [0, sizeof…​(T)), +and Ti be the i-th type in T…​.

+
Constructors
@@ -2129,6 +2133,11 @@ in T…​.

If v.index() is I, returns a reference to the object stored in the variant. Otherwise, throws bad_variant_access.

+
Remarks:
+
+

These functions do not participate in overload resolution +unless I < sizeof…​(T).

+
@@ -2202,15 +2211,16 @@ Otherwise, throws bad_variant_access.

-
Requires:
-
-

I < sizeof…​(U). Otherwise, the program is ill-formed.

-
Effects:

A pointer to the value stored in the variant, if v != nullptr && v->index() == I. Otherwise, nullptr.

+
Remarks:
+
+

These functions do not participate in overload resolution +unless I < sizeof…​(T).

+
@@ -2268,7 +2278,7 @@ the zero-based index of U in T…​.

Returns:
-

v.index() == w.index && get<I>(v) == get<I>(w), where I +

v.index() == w.index() && get<I>(v) == get<I>(w), where I is v.index().

@@ -2311,7 +2321,7 @@ is v.index().

Returns:
-

v.index() < w.index || (v.index() == w.index && get<I>(v) < get<I>(w)), +

v.index() < w.index() || (v.index() == w.index() && get<I>(v) < get<I>(w)), where I is v.index().

@@ -2354,7 +2364,7 @@ where I is v.index().

Returns:
-

v.index() < w.index || (v.index() == w.index && get<I>(v) <= get<I>(w)), +

v.index() < w.index() || (v.index() == w.index() && get<I>(v) <= get<I>(w)), where I is v.index().

@@ -2466,7 +2476,7 @@ the Boost Software License, Versi