tmp/tmp_4euyymh/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,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.
|
| 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 should be the inverse of `pointer_to`. If
|
| 14 |
+
defined, it customizes the behavior of the non-member function
|
| 15 |
+
`to_address` [[pointer.conversion]]. — *end note*]
|
| 16 |
+
|