Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:24

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/beast
0008 //
0009 
0010 #ifndef BOOST_BEAST_DETAIL_SERVICE_BASE_HPP
0011 #define BOOST_BEAST_DETAIL_SERVICE_BASE_HPP
0012 
0013 #include <boost/asio/execution_context.hpp>
0014 
0015 namespace boost {
0016 namespace beast {
0017 namespace detail {
0018 
0019 template<class T>
0020 struct service_base : net::execution_context::service
0021 {
0022     static net::execution_context::id const id;
0023 
0024     explicit
0025     service_base(net::execution_context& ctx)
0026         : net::execution_context::service(ctx)
0027     {
0028     }
0029 };
0030 
0031 template<class T>
0032 net::execution_context::id const service_base<T>::id;
0033 
0034 } // detail
0035 } // beast
0036 } // boost
0037 
0038 #endif