1 /* 2 Copyright 2017-2018 Glen Joseph Fernandes 3 (glenjofe@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_DETECTED_OR_HPP_INCLUDED 11 #define BOOST_TT_DETECTED_OR_HPP_INCLUDED 12 13 #include <boost/type_traits/detail/detector.hpp> 14 15 namespace boost { 16 17 template<class Default, template<class...> class Op, class... Args> 18 using detected_or = detail::detector<Default, void, Op, Args...>; 19 20 template<class Default, template<class...> class Op, class... Args> 21 using detected_or_t = typename detected_or<Default, Op, Args...>::type; 22 23 } /* boost */ 24 25 #endif 26