]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/asio/is_executor.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / asio / is_executor.hpp
1 //
2 // is_executor.hpp
3 // ~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2020 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 //
10
11 #ifndef BOOST_ASIO_IS_EXECUTOR_HPP
12 #define BOOST_ASIO_IS_EXECUTOR_HPP
13
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18 #include <boost/asio/detail/config.hpp>
19 #include <boost/asio/detail/is_executor.hpp>
20
21 #include <boost/asio/detail/push_options.hpp>
22
23 namespace boost {
24 namespace asio {
25
26 /// The is_executor trait detects whether a type T meets the Executor type
27 /// requirements.
28 /**
29 * Class template @c is_executor is a UnaryTypeTrait that is derived from @c
30 * true_type if the type @c T meets the syntactic requirements for Executor,
31 * otherwise @c false_type.
32 */
33 template <typename T>
34 struct is_executor
35 #if defined(GENERATING_DOCUMENTATION)
36 : integral_constant<bool, automatically_determined>
37 #else // defined(GENERATING_DOCUMENTATION)
38 : boost::asio::detail::is_executor<T>
39 #endif // defined(GENERATING_DOCUMENTATION)
40 {
41 };
42
43 } // namespace asio
44 } // namespace boost
45
46 #include <boost/asio/detail/pop_options.hpp>
47
48 #endif // BOOST_ASIO_IS_EXECUTOR_HPP