]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/process/detail/posix/async_handler.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / process / detail / posix / async_handler.hpp
1 // Copyright (c) 2016 Klemens D. Morgenstern
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6
7 #ifndef BOOST_PROCESS_POSIX_ASYNC_HANDLER_HPP_
8 #define BOOST_PROCESS_POSIX_ASYNC_HANDLER_HPP_
9
10 #include <boost/process/detail/posix/handler.hpp>
11 #include <type_traits>
12
13 namespace boost { namespace process { namespace detail { namespace posix {
14
15 struct require_io_context {};
16
17 struct async_handler : handler_base_ext, require_io_context
18 {
19 };
20
21 template<typename T>
22 struct is_async_handler : std::is_base_of<async_handler, T> {};
23 template<typename T>
24 struct is_async_handler<T&> : std::is_base_of<async_handler, T> {};
25 template<typename T>
26 struct is_async_handler<const T&> : std::is_base_of<async_handler, T> {};
27
28 template<typename T>
29 struct does_require_io_context : std::is_base_of<require_io_context, T> {};
30
31 template<typename T>
32 struct does_require_io_context<T&> : std::is_base_of<require_io_context, T> {};
33
34 template<typename T>
35 struct does_require_io_context<const T&> : std::is_base_of<require_io_context, T> {};
36
37
38 }}}}
39
40 #endif /* BOOST_PROCESS_WINDOWS_ASYNC_HANDLER_HPP_ */