From 6d7be90ce074fe09efd15e76383701da847564e7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 25 Mar 2019 16:35:27 +0200 Subject: [PATCH] Document the exception safety of emplace --- doc/html/variant2.html | 22 +++++++++++++++++++--- doc/variant2/reference.adoc | 8 ++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/doc/html/variant2.html b/doc/html/variant2.html index 0b63524..c4e60a8 100644 --- a/doc/html/variant2.html +++ b/doc/html/variant2.html @@ -1346,7 +1346,7 @@ and U occurs exactly once in T…​.

Requires:
-

I < sizeof(T…​).

+

I < sizeof…​(T).

Effects:
@@ -1361,6 +1361,14 @@ value as if using the expression Ti(std::forward<A>(a)…​

A reference to the new contained value.

+
Throws:
+
+

Nothing unless the initialization of the new contained value throws.

+
+
Exception Safety:
+
+

Basic. On exception the value of the variant is valid but unspecified.

+
Remarks:

This function shall not participate in overload resolution unless @@ -1386,7 +1394,7 @@ value as if using the expression Ti(std::forward<A>(a)…​

Requires:
-

I < sizeof(T…​).

+

I < sizeof…​(T).

Effects:
@@ -1401,6 +1409,14 @@ value as if using the expression Ti(il, std::forward<A>(a)…

A reference to the new contained value.

+
Throws:
+
+

Nothing unless the initialization of the new contained value throws.

+
+
Exception Safety:
+
+

Basic. On exception the value of the variant is valid but unspecified.

+
Remarks:

This function shall not participate in overload resolution unless @@ -2141,7 +2157,7 @@ the Boost Software License, Versi