MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
invoke.hpp 文件参考

MSTL统一调用接口 更多...

invoke.hpp 的引用(Include)关系图:

浏览该文件的源代码.

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)
 带返回类型检查的统一调用接口

详细描述

MSTL统一调用接口

此文件提供了统一的可调用接口,并提供相关的可调用性检查工具。

在文件 invoke.hpp 中定义.