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 |
[edit] Parameters
(none)
[edit] Return value
A pointer to the stored function if target_type
() == typeid(T), otherwise a null pointer.
[edit] Exceptions
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
obtains the typeid of the stored target of a std::function (public member function) |