void_t.hpp 677 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BOOST_DESCRIBE_DETAIL_VOID_T_HPP_INCLUDED
  2. #define BOOST_DESCRIBE_DETAIL_VOID_T_HPP_INCLUDED
  3. // Copyright 2021 Peter Dimov
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // https://www.boost.org/LICENSE_1_0.txt
  6. #include <boost/describe/detail/config.hpp>
  7. #if defined(BOOST_DESCRIBE_CXX11)
  8. namespace boost
  9. {
  10. namespace describe
  11. {
  12. namespace detail
  13. {
  14. template<class...> struct make_void
  15. {
  16. using type = void;
  17. };
  18. template<class... T> using void_t = typename make_void<T...>::type;
  19. } // namespace detail
  20. } // namespace describe
  21. } // namespace boost
  22. #endif // defined(BOOST_DESCRIBE_CXX11)
  23. #endif // #ifndef BOOST_DESCRIBE_DETAIL_VOID_T_HPP_INCLUDED