Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

uses_executor

The uses_executor trait detects whether a type T has an associated executor that is convertible from type Executor.

template<
    typename T,
    typename Executor>
struct uses_executor

Meets the BinaryTypeTrait requirements. The Asio library provides a definition that is derived from false_type. A program may specialize this template to derive from true_type for a user-defined type T that can be constructed with an executor, where the first argument of a constructor has type executor_arg_t and the second argument is convertible from type Executor.

Requirements

Header: boost/asio/uses_executor.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext