tmp/tmpfor593x3/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,18 @@
|
|
| 1 |
#### Optional members <a id="pointer.traits.optmem">[[pointer.traits.optmem]]</a>
|
| 2 |
|
| 3 |
Specializations of `pointer_traits` may define the member declared in
|
| 4 |
-
this subclause to customize the behavior of the standard library.
|
|
|
|
|
|
|
| 5 |
|
| 6 |
``` cpp
|
| 7 |
static element_type* to_address(pointer p) noexcept;
|
| 8 |
```
|
| 9 |
|
| 10 |
*Returns:* A pointer of type `element_type*` that references the same
|
| 11 |
location as the argument `p`.
|
| 12 |
|
| 13 |
-
[*Note 1*: This function
|
| 14 |
-
defined, it customizes the behavior of the non-member function
|
| 15 |
`to_address` [[pointer.conversion]]. — *end note*]
|
| 16 |
|
|
|
|
| 1 |
#### Optional members <a id="pointer.traits.optmem">[[pointer.traits.optmem]]</a>
|
| 2 |
|
| 3 |
Specializations of `pointer_traits` may define the member declared in
|
| 4 |
+
this subclause to customize the behavior of the standard library. A
|
| 5 |
+
specialization generated from the `pointer_traits` primary template has
|
| 6 |
+
no member by this name.
|
| 7 |
|
| 8 |
``` cpp
|
| 9 |
static element_type* to_address(pointer p) noexcept;
|
| 10 |
```
|
| 11 |
|
| 12 |
*Returns:* A pointer of type `element_type*` that references the same
|
| 13 |
location as the argument `p`.
|
| 14 |
|
| 15 |
+
[*Note 1*: This function is intended to be the inverse of `pointer_to`.
|
| 16 |
+
If defined, it customizes the behavior of the non-member function
|
| 17 |
`to_address` [[pointer.conversion]]. — *end note*]
|
| 18 |
|