[func.wrap.func.targ] (original) (raw)

20 General utilities library [utilities]

20.14 Function objects [function.objects]

20.14.17 Polymorphic function wrappers [func.wrap]

20.14.17.3 Class template function [func.wrap.func]

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

🔗

const type_info& target_type() const noexcept;

1

#

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;

2

#

Returns: If target_­type() == typeid(T)a pointer to the stored function target; otherwise a null pointer.