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: ::