|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
通用函数绑定器的部分特化 更多...
#include <bind.hpp>
Public 成员函数 | |
| template<typename... Args> | |
| MSTL_CONSTEXPR20 | binder (Func &&func, Args &&... args) |
| 构造函数 | |
| binder (const binder &)=default | |
| 复制构造函数 | |
| binder (binder &&)=default | |
| 移动构造函数 | |
| template<typename... Args> | |
| MSTL_CONSTEXPR20 auto | operator() (Args &&... args) -> result_type< tuple< Args &&... > > |
| 调用操作符 | |
| template<typename... Args> | |
| MSTL_CONSTEXPR20 auto | operator() (Args &&... args) const -> result_type_const< tuple< Args &&... > > |
| const调用操作符 | |
通用函数绑定器的部分特化
| Func | 可调用对象类型 |
| BoundArgs | 绑定的参数类型 |
存储函数对象和绑定的参数,当被调用时,将绑定的参数和调用时的参数 组合后调用原始函数。支持占位符参数重排。
|
inlineexplicit |
|
inline |
|
inline |