tmp/tmpc3o3nep6/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
void swap(
|
| 5 |
noexcept(ator_traits::propagate_on_container_swap::value ||
|
| 6 |
ator_traits::is_always_equal::value);
|
| 7 |
```
|
| 8 |
|
| 9 |
-
*
|
| 10 |
-
`ator_traits::propagate_on_container_swap` is `true`, or
|
| 11 |
`alloc_ == nh.alloc_`.
|
| 12 |
|
| 13 |
*Effects:* Calls `swap(ptr_, nh.ptr_)`. If `!alloc_`, or `!nh.alloc_`,
|
| 14 |
-
or `ator_traits::propagate_on_container_swap` is `true` calls
|
| 15 |
`swap(alloc_, nh.alloc_)`.
|
| 16 |
|
|
|
|
| 1 |
+
#### Modifiers <a id="container.node.modifiers">[[container.node.modifiers]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
void swap(node-handle& nh)
|
| 5 |
noexcept(ator_traits::propagate_on_container_swap::value ||
|
| 6 |
ator_traits::is_always_equal::value);
|
| 7 |
```
|
| 8 |
|
| 9 |
+
*Preconditions:* `!alloc_`, or `!nh.alloc_`, or
|
| 10 |
+
`ator_traits::propagate_on_container_swap::value` is `true`, or
|
| 11 |
`alloc_ == nh.alloc_`.
|
| 12 |
|
| 13 |
*Effects:* Calls `swap(ptr_, nh.ptr_)`. If `!alloc_`, or `!nh.alloc_`,
|
| 14 |
+
or `ator_traits::propagate_on_container_swap::value` is `true` calls
|
| 15 |
`swap(alloc_, nh.alloc_)`.
|
| 16 |
|