tmp/tmp8od_0e39/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,17 @@
|
|
| 1 |
-
##### function target access <a id="func.wrap.func.targ">[[func.wrap.func.targ]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
const
|
| 5 |
```
|
| 6 |
|
| 7 |
*Returns:* If `*this` has a target of type `T`, `typeid(T)`; otherwise,
|
| 8 |
`typeid(void)`.
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
template<class T> T* target() noexcept;
|
| 12 |
template<class T> const T* target() const noexcept;
|
| 13 |
```
|
| 14 |
|
| 15 |
-
*Requires:* `T` shall be a type that is Callable ([[func.wrap.func]])
|
| 16 |
-
for parameter types `ArgTypes` and return type `R`.
|
| 17 |
-
|
| 18 |
*Returns:* If `target_type() == typeid(T)` a pointer to the stored
|
| 19 |
function target; otherwise a null pointer.
|
| 20 |
|
|
|
|
| 1 |
+
##### `function` target access <a id="func.wrap.func.targ">[[func.wrap.func.targ]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
const type_info& target_type() const noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Returns:* If `*this` has a target of type `T`, `typeid(T)`; otherwise,
|
| 8 |
`typeid(void)`.
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
template<class T> T* target() noexcept;
|
| 12 |
template<class T> const T* target() const noexcept;
|
| 13 |
```
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
*Returns:* If `target_type() == typeid(T)` a pointer to the stored
|
| 16 |
function target; otherwise a null pointer.
|
| 17 |
|