2 Copyright 2017-2018 Glen Joseph Fernandes
3 <glenjofe -at- gmail.com>
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)
10 #ifndef BOOST_TT_DETAIL_DETECTOR_HPP_INCLUDED
11 #define BOOST_TT_DETAIL_DETECTOR_HPP_INCLUDED
13 #include <boost/type_traits/integral_constant.hpp>
14 #include <boost/type_traits/make_void.hpp>
20 using detector_t = typename boost::make_void<T>::type;
22 template<class Default, class, template<class...> class, class...>
24 using value_t = boost::false_type;
28 template<class Default, template<class...> class Op, class... Args>
29 struct detector<Default, detector_t<Op<Args...> >, Op, Args...> {
30 using value_t = boost::true_type;
31 using type = Op<Args...>;