fix doc example typo
[boost.git] / boost / asio / detail / service_id.hpp
blobf249ddff4062ba6ebb3d83c2119cd36985e2606e
1 //
2 // service_id.hpp
3 // ~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
11 #ifndef BOOST_ASIO_DETAIL_SERVICE_ID_HPP
12 #define BOOST_ASIO_DETAIL_SERVICE_ID_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/push_options.hpp>
20 #include <boost/asio/io_service.hpp>
22 namespace boost {
23 namespace asio {
24 namespace detail {
26 // Special derived service id type to keep classes header-file only.
27 template <typename Type>
28 class service_id
29 : public boost::asio::io_service::id
33 } // namespace detail
34 } // namespace asio
35 } // namespace boost
37 #include <boost/asio/detail/pop_options.hpp>
39 #endif // BOOST_ASIO_DETAIL_SERVICE_ID_HPP