Namespaces
Variants
Views
Actions

std::function::target_type

From cppreference.com
< cpp‎ | utility‎ | functional‎ | function
Revision as of 14:49, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
Function objects


Function wrappers
(C++11)
(C++11)
Bind
(C++11)
Reference wrappers
(C++11)(C++11)
Operator wrappers
Negators
Deprecated binders and adaptors
(deprecated)
(deprecated)
(deprecated)
(deprecated)
(deprecated)(deprecated)(deprecated)(deprecated)
(deprecated)
(deprecated)(deprecated)(deprecated)(deprecated)
(deprecated)(deprecated)
(deprecated)(deprecated)
 
 

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
const std::type_info& target_type() const;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Returns the type of the stored function.

Contents

Parameters

(none)

Return value

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

Exceptions

noexcept specification:  
noexcept
  

Example

See also

target_type
obtains the typeid of the stored target of a std::function
(public member function) [edit]