Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - execution_context::make_service

까마귀75 2021. 2. 7. 01:36
728x90
반응형

execution_context::make_service

서비스 개체를 생성하여 execution_context에 추가한다.

template<
    typename Service,
    typename... Args>
friend Service & make_service(
    execution_context & e,
    Args &&... args);

[Service]

이 함수는 execution_context에 서비스를 추가하는 데 사용된다.

파라미터

이 름 설 명
e 서비스를 소유하는 execution_context 개체이다.
args 서비스 생성자에 전달되는 0개 이상의 인수이다.

예 외

이 름 설 명
boost::asio::service_already_exists 주어진 유형의 서비스가 이미 execution_context에 존재하는 경우 발생한다.

요구 사항

일반 헤더: boost/asio/execution_context.hpp
편의 헤더: boost/asio/execution.hpp

Boost.Asio 홈

728x90
반응형