]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/type_traits/is_detected_convertible.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / type_traits / is_detected_convertible.hpp
1 /*
2 Copyright 2017-2018 Glen Joseph Fernandes
3 <glenjofe -at- gmail.com>
4
5 Distributed under the Boost Software License,
6 Version 1.0. (See accompanying file LICENSE_1_0.txt
7 or copy at http://www.boost.org/LICENSE_1_0.txt)
8 */
9
10 #ifndef BOOST_TT_IS_DETECTED_CONVERTIBLE_HPP_INCLUDED
11 #define BOOST_TT_IS_DETECTED_CONVERTIBLE_HPP_INCLUDED
12
13 #include <boost/type_traits/detected.hpp>
14 #include <boost/type_traits/is_convertible.hpp>
15
16 namespace boost {
17
18 template<class To, template<class...> class Op, class... Args>
19 using is_detected_convertible = is_convertible<detected_t<Op, Args...>, To>;
20
21 #if !defined(BOOST_NO_CXX14_VARIABLE_TEMPLATES)
22 template<class To, template<class...> class Op, class... Args>
23 constexpr bool is_detected_convertible_v = is_detected_convertible<To, Op,
24 Args...>::value;
25 #endif
26
27 } /* boost */
28
29 #endif