Namespaces
Variants
Views
Actions

std::function::target_type

From cppreference.com
< cpp‎ | utility‎ | functional‎ | function
Revision as of 16:54, 1 July 2013 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)
 
 
const std::type_info& target_type() const;
(since C++11)

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

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