tmp/tmptlsc6u3u/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Specialized algorithms <a id="variant.specalg">[[variant.specalg]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template <class... Types>
|
| 5 |
+
void swap(variant<Types...>& v, variant<Types...>& w) noexcept(see below);
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
*Effects:* Equivalent to `v.swap(w)`.
|
| 9 |
+
|
| 10 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 11 |
+
unless `is_move_constructible_v<``Tᵢ``> && is_swappable_v<``Tᵢ``>` is
|
| 12 |
+
`true` for all i. The expression inside `noexcept` is equivalent to
|
| 13 |
+
`noexcept(v.swap(w))`.
|
| 14 |
+
|