Boost C++ 库

...世界上最受尊敬和设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ 编码标准

PrevUpHomeNext

is_executor

is_executor 特性(trait)检测类型 T 是否满足 Executor 类型要求。

template<
    typename T>
struct is_executor :
  public integral_constant< bool, automatically_determined >

类模板 is_executor 是一个 UnaryTypeTrait,如果类型 T 满足 Executor 的语法要求,则派生自 true_type,否则派生自 false_type

要求

头文件: boost/asio/is_executor.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext