一种函数对象类型,它适配 completion token,以指定 completion handler 应具有所提供的 executor 作为其关联的 executor。
template< typename Executor> struct partial_executor_binder
|
名称 |
描述 |
|---|---|
|
适配 completion token,以指定 completion handler 应具有 executor 作为其关联的 executor。 |
|
|
partial_executor_binder [constructor] |
指定关联 executor 的构造函数。 |
|
名称 |
描述 |
|---|---|
也可直接用作 completion token,在这种情况下,它会适配异步操作的默认 completion token(如果不存在默认值,则为 deferred)。
头文件: boost/asio/bind_executor.hpp
便捷头文件: boost/asio.hpp