/* This file is part of the dynarmic project. * Copyright (c) 2018 MerryMage * This software may be used and distributed according to the terms of the GNU * General Public License version 2 or any later version. */ #pragma once #include namespace Dynarmic::Common::mp { namespace detail { template struct to_tuple_impl; template class LT, class... T> struct to_tuple_impl> { static constexpr auto value = std::make_tuple(static_cast(T::value)...); }; } // namespace detail /// Metafunction that converts a list of metavalues to a tuple value. template constexpr auto to_tuple = detail::to_tuple_impl::value; } // namespace Dynarmic::Common::mp