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