Files
externals/linux/include/ActivBoost/parameter/aux_/pack/make_items.hpp
T
2023-12-15 13:15:08 -05:00

46 lines
1.4 KiB
C++

// Copyright David Abrahams, Daniel Wallin 2003.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef ACTIV_BOOST_PARAMETER_AUX_PACK_MAKE_ITEMS_HPP
#define ACTIV_BOOST_PARAMETER_AUX_PACK_MAKE_ITEMS_HPP
#include <ActivBoost/parameter/aux_/void.hpp>
#include <ActivBoost/parameter/aux_/pack/item.hpp>
#include <ActivBoost/parameter/config.hpp>
#if defined(ACTIV_BOOST_PARAMETER_CAN_USE_MP11)
#include <ActivBoost/mp11/utility.hpp>
#include <type_traits>
#else
#include <ActivBoost/mpl/eval_if.hpp>
#include <ActivBoost/mpl/identity.hpp>
#include <ActivBoost/type_traits/is_same.hpp>
#endif
namespace Boost { namespace parameter { namespace aux {
// Creates a item typelist.
template <typename Spec, typename Arg, typename Tail>
#if defined(ACTIV_BOOST_PARAMETER_CAN_USE_MP11)
using make_items = ::Boost::mp11::mp_if<
::std::is_same<Arg,::Boost::parameter::void_>
, ::Boost::mp11::mp_identity< ::Boost::parameter::void_>
, ::Boost::parameter::aux::make_item<Spec,Arg,Tail>
>;
#else
struct make_items
: ::Boost::mpl::eval_if<
::Boost::is_same<Arg,::Boost::parameter::void_>
, ::Boost::mpl::identity< ::Boost::parameter::void_>
, ::Boost::parameter::aux::make_item<Spec,Arg,Tail>
>
{
};
#endif
}}} // namespace Boost::parameter::aux
#endif // include guard