Kiwano Engine  v1.2.x
kiwano::Function< _Ret(_Args...)> 模板类 参考

Public 成员函数

 Function (std::nullptr_t)
 
 Function (const Function &rhs)
 
 Function (Function &&rhs) noexcept
 
 Function (_Ret(*func)(_Args...))
 
template<typename _Ty , typename = typename std::enable_if<details::IsCallable<_Ty, _Ret, _Args...>::value, int>::type>
 Function (_Ty val)
 
template<typename _Ty , typename _Uty , typename = typename std::enable_if<std::is_same<_Ty, _Uty>::value || std::is_base_of<_Ty, _Uty>::value, int>::type>
 Function (_Uty *ptr, _Ret(_Ty::*func)(_Args...))
 
template<typename _Ty , typename _Uty , typename = typename std::enable_if<std::is_same<_Ty, _Uty>::value || std::is_base_of<_Ty, _Uty>::value, int>::type>
 Function (_Uty *ptr, _Ret(_Ty::*func)(_Args...) const)
 
_Ret operator() (_Args...args) const
 
 operator bool () const
 
Functionoperator= (const Function &rhs)
 
Functionoperator= (Function &&rhs)
 
void swap (const Function &rhs)
 
const std::type_info & target_type () const noexcept
 
template<class _Fx >
_Fx * target () noexcept
 
template<class _Fx >
const _Fx * target () const noexcept