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