|
| template<typename Fn, typename... Args> |
| constexpr | binder_front (int p, Fn &&func, Args &&... args) noexcept(conjunction< is_nothrow_constructible< Func, Fn >, is_nothrow_constructible< BoundArgs, Args >... >::value) |
| | 构造函数
|
|
| binder_front (const binder_front &)=default |
| | 复制构造函数
|
|
binder_front & | operator= (const binder_front &)=default |
| | 复制赋值运算符
|
|
| binder_front (binder_front &&)=default |
| | 移动构造函数
|
|
binder_front & | operator= (binder_front &&)=default |
| | 移动赋值运算符
|
|
| ~binder_front ()=default |
| | 析构函数
|
| template<typename... CallArgs> |
| constexpr invoke_result_t< Func &, BoundArgs &..., CallArgs... > | operator() (CallArgs &&... call_args) &noexcept(is_nothrow_invocable_v< Func &, BoundArgs &..., CallArgs... >) |
| | 左值调用操作符
|
| template<typename... CallArgs> |
| constexpr invoke_result_t< const Func &, const BoundArgs &..., CallArgs... > | operator() (CallArgs &&... call_args) const &noexcept(is_nothrow_invocable_v< const Func &, const BoundArgs &..., CallArgs... >) |
| | const左值调用操作符
|
| template<typename... CallArgs> |
| constexpr invoke_result_t< Func, BoundArgs..., CallArgs... > | operator() (CallArgs &&... call_args) &&noexcept(is_nothrow_invocable_v< Func, BoundArgs..., CallArgs... >) |
| | 右值调用操作符
|
| template<typename... CallArgs> |
| constexpr invoke_result_t< const Func, const BoundArgs..., CallArgs... > | operator() (CallArgs &&... call_args) const &&noexcept(is_nothrow_invocable_v< const Func, const BoundArgs..., CallArgs... >) |
| | const右值调用操作符
|
template<typename Func, typename... BoundArgs>
class binder_front< Func, BoundArgs >
前向参数绑定器
- 模板参数
-
| Func | 可调用对象类型 |
| BoundArgs | 绑定的参数类型 |
将参数绑定到函数的前几个位置,不支持占位符参数重排。
在文件 bind.hpp 第 839 行定义.