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 version of Boost is under active development. You are currently in the master branch. The current version is 1.89.0.
Obtain the service object corresponding to the given type.
template< typename Service> Service & use_service( execution_context & e);
This function is used to locate a service object that corresponds to
the given service type. If there is no existing implementation of the
service, then the execution_context will create
a new instance of the service.
The execution_context object
that owns the service.
The service interface implementing the specified service type. Ownership of the service interface is not transferred to the caller.
Header: boost/asio/execution_context.hpp
Convenience header: boost/asio/execution.hpp