MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
binder_front< Func, BoundArgs > 模板类 参考

前向参数绑定器 更多...

#include <bind.hpp>

Public 成员函数

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_frontoperator= (const binder_front &)=default
 复制赋值运算符
 binder_front (binder_front &&)=default
 移动构造函数
binder_frontoperator= (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.hpp839 行定义.

构造及析构函数说明

◆ binder_front()

template<typename Func, typename... BoundArgs>
template<typename Fn, typename... Args>
binder_front< Func, BoundArgs >::binder_front ( int p,
Fn && func,
Args &&... args )
inlineexplicitconstexprnoexcept

构造函数

模板参数
Fn函数类型
Args绑定参数类型
参数
p占位符参数
func要绑定的函数对象
args绑定的参数

在文件 bind.hpp881 行定义.

成员函数说明

◆ operator()() [1/4]

template<typename Func, typename... BoundArgs>
template<typename... CallArgs>
invoke_result_t< Func, BoundArgs..., CallArgs... > binder_front< Func, BoundArgs >::operator() ( CallArgs &&... call_args) &&
inlineconstexprnoexcept

右值调用操作符

模板参数
CallArgs调用参数类型
参数
call_args调用参数
返回
函数调用结果

在文件 bind.hpp930 行定义.

◆ operator()() [2/4]

template<typename Func, typename... BoundArgs>
template<typename... CallArgs>
invoke_result_t< Func &, BoundArgs &..., CallArgs... > binder_front< Func, BoundArgs >::operator() ( CallArgs &&... call_args) &
inlineconstexprnoexcept

左值调用操作符

模板参数
CallArgs调用参数类型
参数
call_args调用参数
返回
函数调用结果

在文件 bind.hpp904 行定义.

◆ operator()() [3/4]

template<typename Func, typename... BoundArgs>
template<typename... CallArgs>
invoke_result_t< const Func, const BoundArgs..., CallArgs... > binder_front< Func, BoundArgs >::operator() ( CallArgs &&... call_args) const &&
inlineconstexprnoexcept

const右值调用操作符

模板参数
CallArgs调用参数类型
参数
call_args调用参数
返回
函数调用结果

在文件 bind.hpp943 行定义.

◆ operator()() [4/4]

template<typename Func, typename... BoundArgs>
template<typename... CallArgs>
invoke_result_t< const Func &, const BoundArgs &..., CallArgs... > binder_front< Func, BoundArgs >::operator() ( CallArgs &&... call_args) const &
inlineconstexprnoexcept

const左值调用操作符

模板参数
CallArgs调用参数类型
参数
call_args调用参数
返回
函数调用结果

在文件 bind.hpp917 行定义.


该类的文档由以下文件生成: