From 99cc1db385dca63b34cc4807c03bc47f1212428f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 25 Jan 2021 03:49:42 +0200 Subject: [PATCH] Fix documentation for emplace effects --- doc/variant2/reference.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/variant2/reference.adoc b/doc/variant2/reference.adoc index 8aba92d..b5d5a84 100644 --- a/doc/variant2/reference.adoc +++ b/doc/variant2/reference.adoc @@ -490,8 +490,8 @@ template + Requires: :: `I < sizeof...(T)`. Effects: :: - Destroys the currently contained value, then initializes a new contained - value as if using the expression `Ti(std::forward(a)...)`. + Initializes a new contained value as if using the expression + `Ti(std::forward(a)...)`, then destroys the currently contained value. Ensures: :: `index() == I`. Returns: :: A reference to the new contained value. Throws: :: @@ -511,8 +511,8 @@ template + Requires: :: `I < sizeof...(T)`. Effects: :: - Destroys the currently contained value, then initializes a new contained - value as if using the expression `Ti(il, std::forward(a)...)`. + Initializes a new contained value as if using the expression + `Ti(il, std::forward(a)...)`, then destroys the currently contained value. Ensures: :: `index() == I`. Returns: :: A reference to the new contained value. Throws: ::