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 for the latest Boost documentation.
PrevUpHomeNext

thread_pool::has_service

Inherited from execution_context.

Determine if an execution_context contains a specified service type.

template<
    typename Service>
friend bool has_service(
    execution_context & e);

This function is used to determine whether the execution_context contains a service object corresponding to the given service type.

Parameters

e

The execution_context object that owns the service.

Return Value

A boolean indicating whether the execution_context contains the service.

Requirements

Header: boost/asio/thread_pool.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext