mp_value.hpp 602 B

12345678910111213141516171819202122232425
  1. #ifndef BOOST_MP11_DETAIL_MP_VALUE_HPP_INCLUDED
  2. #define BOOST_MP11_DETAIL_MP_VALUE_HPP_INCLUDED
  3. // Copyright 2023 Peter Dimov
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // https://www.boost.org/LICENSE_1_0.txt
  6. #include <boost/mp11/detail/config.hpp>
  7. #include <type_traits>
  8. #if defined(BOOST_MP11_HAS_TEMPLATE_AUTO)
  9. namespace boost
  10. {
  11. namespace mp11
  12. {
  13. template<auto A> using mp_value = std::integral_constant<decltype(A), A>;
  14. } // namespace mp11
  15. } // namespace boost
  16. #endif // #if defined(BOOST_MP11_HAS_TEMPLATE_AUTO)
  17. #endif // #ifndef BOOST_MP11_DETAIL_MP_VALUE_HPP_INCLUDED