Boost C++ 库

世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

partial_executor_binder - Boost C++ 函数库
PrevUpHomeNext

一种函数对象类型,它适配一个 completion token,以指定该 completion handler 应具有提供的 executor 作为其关联的 executor。

template<
    typename Executor>
struct partial_executor_binder
成员函数

名称

描述

operator()

适配一个 completion token,以指定该 completion handler 应具有 executor 作为其关联的 executor。

partial_executor_binder [构造函数]

指定关联 executor 的构造函数。

数据成员

名称

描述

executor_

也可直接用作 completion token,在这种情况下,它将适配异步操作的默认 completion token(如果未提供默认值,则为 deferred)。

要求

头文件: boost/asio/bind_executor.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext