detected_or.hpp 670 B

12345678910111213141516171819202122232425
  1. /*
  2. Copyright 2017-2018 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License,
  5. Version 1.0. (See accompanying file LICENSE_1_0.txt
  6. or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_TT_DETECTED_OR_HPP_INCLUDED
  9. #define BOOST_TT_DETECTED_OR_HPP_INCLUDED
  10. #include <boost/type_traits/detail/detector.hpp>
  11. namespace boost {
  12. template<class Default, template<class...> class Op, class... Args>
  13. using detected_or = detail::detector<Default, void, Op, Args...>;
  14. template<class Default, template<class...> class Op, class... Args>
  15. using detected_or_t = typename detected_or<Default, Op, Args...>::type;
  16. } /* boost */
  17. #endif