|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
MSTL统一调用接口 更多...
#include "MSTL/core/utility/reference_wrapper.hpp"类 | |
| struct | invoke_memfun_ref_tag |
| 成员函数引用调用标签 更多... | |
| struct | invoke_memfun_deref_tag |
| 成员函数解引用调用标签 更多... | |
| struct | invoke_memobj_ref_tag |
| 成员对象引用调用标签 更多... | |
| struct | invoke_memobj_deref_tag |
| 成员对象解引用调用标签 更多... | |
| struct | invoke_other_tag |
| 其他类型调用标签 更多... | |
| struct | invoke_result_true< T, Tag > |
| 成功推导到调用结果类型的包装器 更多... | |
| struct | invoke_result_false |
| 推导失败的空结构 更多... | |
| struct | invoke_result< F(Args...)> |
| invoke_result的特化版本 更多... | |
| struct | is_invocable< F, Args > |
| 判断类型是否可调用 更多... | |
| struct | is_invocable_r< Ret, F, Args > |
| 判断类型是否可调用并返回指定类型 更多... | |
| struct | is_nothrow_invocable< F, Args > |
| 判断调用是否不会抛出异常 更多... | |
类型定义 | |
| template<typename F, typename... Args> | |
| using | invoke_result_t = typename _INNER __invoke_result_aux<F, Args...>::type |
| invoke_result的便捷别名 | |
函数 | |
| template<typename Callable, typename... Args> | |
| MSTL_CONSTEXPR14 _INNER __invoke_result_aux< Callable, Args... >::type | invoke (Callable &&f, Args &&... args) noexcept(is_nothrow_invocable< Callable, Args... >::value) |
| 统一调用接口 | |
| template<typename Res, typename Callable, typename... Args> | |
| MSTL_CONSTEXPR14 enable_if_t< is_invocable_r< Res, Callable, Args... >::value, Res > | invoke_r (Callable &&f, Args &&... args) noexcept(is_nothrow_invocable< Callable, Args... >::value) |
| 带返回类型检查的统一调用接口 | |