tmp/tmpl_pizgfr/{from.md → to.md}
RENAMED
|
@@ -6,15 +6,15 @@ const std::type_info& target_type() const noexcept;
|
|
| 6 |
|
| 7 |
*Returns:* If `*this` has a target of type `T`, `typeid(T)`; otherwise,
|
| 8 |
`typeid(void)`.
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
-
template<
|
| 12 |
-
template<
|
| 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 `
|
| 19 |
function target; otherwise a null pointer.
|
| 20 |
|
|
|
|
| 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 |
|