19 General utilities library [utilities]

19.14 Function objects [function.objects]

19.14.14 Polymorphic function wrappers [func.wrap]

19.14.14.2 Class template function [func.wrap.func]

19.14.14.2.5 Target access [func.wrap.func.targ]

const type_info& target_type() const noexcept;
Returns: If *this has a target of type T, typeid(T); otherwise, typeid(void).
template<class T> T* target() noexcept; template<class T> const T* target() const noexcept;
Returns: If target_­type() == typeid(T) a pointer to the stored function target; otherwise a null pointer.