// 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 BOOST_PARAMETER_AUX_PACK_TAG_TYPE_HPP #define BOOST_PARAMETER_AUX_PACK_TAG_TYPE_HPP namespace boost { namespace parameter { namespace aux { // helper for tag_type<...>, below. template struct get_tag_type0 { typedef typename T::key_type type; }; }}} // namespace boost::parameter::aux #include #include #if defined(BOOST_PARAMETER_CAN_USE_MP11) #include #else #include #endif namespace boost { namespace parameter { namespace aux { template struct get_tag_type #if defined(BOOST_PARAMETER_CAN_USE_MP11) : ::boost::mp11::mp_if< #else : ::boost::mpl::eval_if< #endif ::boost::parameter::aux::is_deduced0 , ::boost::parameter::aux::get_tag_type0 , ::boost::parameter::aux::get_tag_type0 > { }; }}} // namespace boost::parameter::aux #include #include #if defined(BOOST_PARAMETER_CAN_USE_MP11) #include namespace boost { namespace parameter { namespace aux { template using tag_type = ::boost::mp11::mp_if< ::boost::mp11::mp_if< ::boost::parameter::aux::is_optional , ::boost::mp11::mp_true , ::boost::parameter::aux::is_required > , ::boost::parameter::aux::get_tag_type , ::boost::mp11::mp_identity >; }}} // namespace boost::parameter::aux #else // !defined(BOOST_PARAMETER_CAN_USE_MP11) #include #include #include namespace boost { namespace parameter { namespace aux { template struct tag_type : ::boost::mpl::eval_if< typename ::boost::mpl::if_< ::boost::parameter::aux::is_optional , ::boost::mpl::true_ , ::boost::parameter::aux::is_required >::type , ::boost::parameter::aux::get_tag_type , ::boost::mpl::identity > { }; }}} // namespace boost::parameter::aux #endif // BOOST_PARAMETER_CAN_USE_MP11 #endif // include guard