##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::function::target_type

From cppreference.com
< cpp‎ | utility‎ | functional‎ | function

const std::type_info& target_type() const; |  | (since C++11)

Returns the type of the stored function.

### [edit] Parameters

(none)

### [edit] Return value

typeid(T) if the stored function has type `T`, otherwise typeid(void)

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

target | obtains a pointer to the stored target of a std::function (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/functional/function/target_type&oldid=63084"
Category:

- Todo no example