From Jason Turner

[container.node.observers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpmrh8g_43/{from.md → to.md} +12 -12
tmp/tmpmrh8g_43/{from.md → to.md} RENAMED
@@ -1,61 +1,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
 
24
  *Throws:* Nothing.
25
 
26
  *Remarks:* Modifying the key through the returned reference is
27
  permitted.
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
 
50
  ``` cpp
51
- explicit operator bool() const noexcept;
52
  ```
53
 
54
- *Returns:* `ptr_ != nullptr`.
55
 
56
  ``` cpp
57
- [[nodiscard]] 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
+ constexpr 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
 
24
  *Throws:* Nothing.
25
 
26
  *Remarks:* Modifying the key through the returned reference is
27
  permitted.
28
 
29
  ``` cpp
30
+ constexpr 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
+ constexpr allocator_type get_allocator() const;
42
  ```
43
 
44
  *Preconditions:* `empty() == false`.
45
 
46
+ *Returns:* `*`*`alloc_`*.
47
 
48
  *Throws:* Nothing.
49
 
50
  ``` cpp
51
+ constexpr explicit operator bool() const noexcept;
52
  ```
53
 
54
+ *Returns:* *`ptr_`*` != nullptr`.
55
 
56
  ``` cpp
57
+ constexpr bool empty() const noexcept;
58
  ```
59
 
60
+ *Returns:* *`ptr_`*` == nullptr`.
61