std::function::target
From cppreference.com
< cpp | utility | functional | function
| template< class T > T* target(); |
(1) | (since C++11) |
| template< class T > const T* target() const; |
(2) | (since C++11) |
Returns a pointer to the stored function target.
Contents |
Parameters
(none)
Return value
A pointer to the stored function if target_type() == typeid(T), otherwise a null pointer.
Exceptions
Example
| This section is incomplete Reason: no example |
See also
| obtains the typeid of the stored target of a std::function (public member function) | |