forked from boostorg/variant2
Fix documentation for emplace effects
This commit is contained in:
@ -490,8 +490,8 @@ template<size_t I, class... A>
|
|||||||
+
|
+
|
||||||
Requires: :: `I < sizeof...(T)`.
|
Requires: :: `I < sizeof...(T)`.
|
||||||
Effects: ::
|
Effects: ::
|
||||||
Destroys the currently contained value, then initializes a new contained
|
Initializes a new contained value as if using the expression
|
||||||
value as if using the expression `Ti(std::forward<A>(a)...)`.
|
`Ti(std::forward<A>(a)...)`, then destroys the currently contained value.
|
||||||
Ensures: :: `index() == I`.
|
Ensures: :: `index() == I`.
|
||||||
Returns: :: A reference to the new contained value.
|
Returns: :: A reference to the new contained value.
|
||||||
Throws: ::
|
Throws: ::
|
||||||
@ -511,8 +511,8 @@ template<size_t I, class V, class... A>
|
|||||||
+
|
+
|
||||||
Requires: :: `I < sizeof...(T)`.
|
Requires: :: `I < sizeof...(T)`.
|
||||||
Effects: ::
|
Effects: ::
|
||||||
Destroys the currently contained value, then initializes a new contained
|
Initializes a new contained value as if using the expression
|
||||||
value as if using the expression `Ti(il, std::forward<A>(a)...)`.
|
`Ti(il, std::forward<A>(a)...)`, then destroys the currently contained value.
|
||||||
Ensures: :: `index() == I`.
|
Ensures: :: `index() == I`.
|
||||||
Returns: :: A reference to the new contained value.
|
Returns: :: A reference to the new contained value.
|
||||||
Throws: ::
|
Throws: ::
|
||||||
|
Reference in New Issue
Block a user