tmp/tmpyh79ihmi/{from.md → to.md}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
value_type& value() const;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*
|
| 8 |
|
| 9 |
*Returns:* A reference to the `value_type` subobject in the
|
| 10 |
`container_node_type` object pointed to by `ptr_`.
|
| 11 |
|
| 12 |
*Throws:* Nothing.
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
key_type& key() const;
|
| 16 |
```
|
| 17 |
|
| 18 |
-
*
|
| 19 |
|
| 20 |
*Returns:* A non-const reference to the `key_type` member of the
|
| 21 |
`value_type` subobject in the `container_node_type` object pointed to by
|
| 22 |
`ptr_`.
|
| 23 |
|
|
@@ -28,22 +28,22 @@ permitted.
|
|
| 28 |
|
| 29 |
``` cpp
|
| 30 |
mapped_type& mapped() const;
|
| 31 |
```
|
| 32 |
|
| 33 |
-
*
|
| 34 |
|
| 35 |
*Returns:* A reference to the `mapped_type` member of the `value_type`
|
| 36 |
subobject in the `container_node_type` object pointed to by `ptr_`.
|
| 37 |
|
| 38 |
*Throws:* Nothing.
|
| 39 |
|
| 40 |
``` cpp
|
| 41 |
allocator_type get_allocator() const;
|
| 42 |
```
|
| 43 |
|
| 44 |
-
*
|
| 45 |
|
| 46 |
*Returns:* `*alloc_`.
|
| 47 |
|
| 48 |
*Throws:* Nothing.
|
| 49 |
|
|
@@ -52,10 +52,10 @@ explicit operator bool() const noexcept;
|
|
| 52 |
```
|
| 53 |
|
| 54 |
*Returns:* `ptr_ != nullptr`.
|
| 55 |
|
| 56 |
``` cpp
|
| 57 |
-
bool empty() const noexcept;
|
| 58 |
```
|
| 59 |
|
| 60 |
*Returns:* `ptr_ == nullptr`.
|
| 61 |
|
|
|
|
| 1 |
+
#### Observers <a id="container.node.observers">[[container.node.observers]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
value_type& value() const;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Preconditions:* `empty() == false`.
|
| 8 |
|
| 9 |
*Returns:* A reference to the `value_type` subobject in the
|
| 10 |
`container_node_type` object pointed to by `ptr_`.
|
| 11 |
|
| 12 |
*Throws:* Nothing.
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
key_type& key() const;
|
| 16 |
```
|
| 17 |
|
| 18 |
+
*Preconditions:* `empty() == false`.
|
| 19 |
|
| 20 |
*Returns:* A non-const reference to the `key_type` member of the
|
| 21 |
`value_type` subobject in the `container_node_type` object pointed to by
|
| 22 |
`ptr_`.
|
| 23 |
|
|
|
|
| 28 |
|
| 29 |
``` cpp
|
| 30 |
mapped_type& mapped() const;
|
| 31 |
```
|
| 32 |
|
| 33 |
+
*Preconditions:* `empty() == false`.
|
| 34 |
|
| 35 |
*Returns:* A reference to the `mapped_type` member of the `value_type`
|
| 36 |
subobject in the `container_node_type` object pointed to by `ptr_`.
|
| 37 |
|
| 38 |
*Throws:* Nothing.
|
| 39 |
|
| 40 |
``` cpp
|
| 41 |
allocator_type get_allocator() const;
|
| 42 |
```
|
| 43 |
|
| 44 |
+
*Preconditions:* `empty() == false`.
|
| 45 |
|
| 46 |
*Returns:* `*alloc_`.
|
| 47 |
|
| 48 |
*Throws:* Nothing.
|
| 49 |
|
|
|
|
| 52 |
```
|
| 53 |
|
| 54 |
*Returns:* `ptr_ != nullptr`.
|
| 55 |
|
| 56 |
``` cpp
|
| 57 |
+
[[nodiscard]] bool empty() const noexcept;
|
| 58 |
```
|
| 59 |
|
| 60 |
*Returns:* `ptr_ == nullptr`.
|
| 61 |
|