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

io_service::has_service

Determine if an io_service contains a specified service type.

template<
    typename Service>
friend bool has_service(
    io_service & ios);

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

Parameters

ios

The io_service object that owns the service.

Return Value

A boolean indicating whether the io_service contains the service.


PrevUpHomeNext