1 // Copyright David Abrahams, Daniel Wallin 2003. 2 // Distributed under the Boost Software License, Version 1.0. 3 // (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #ifndef BOOST_PARAMETER_AUX_PACK_IS_NAMED_ARGUMENT_HPP 7 #define BOOST_PARAMETER_AUX_PACK_IS_NAMED_ARGUMENT_HPP 8 9 #include <boost/parameter/aux_/template_keyword.hpp> 10 #include <boost/parameter/aux_/is_tagged_argument.hpp> 11 #include <boost/parameter/config.hpp> 12 13 #if defined(BOOST_PARAMETER_CAN_USE_MP11) 14 #include <boost/mp11/integral.hpp> 15 #include <boost/mp11/utility.hpp> 16 #else 17 #include <boost/mpl/bool.hpp> 18 #include <boost/mpl/if.hpp> 19 #endif 20 21 namespace boost { namespace parameter { namespace aux { 22 23 template <typename T> 24 #if defined(BOOST_PARAMETER_CAN_USE_MP11) 25 using is_named_argument = ::boost::mp11::mp_if< 26 ::boost::parameter::aux::is_template_keyword<T> 27 , ::boost::mp11::mp_true 28 , ::boost::parameter::aux::is_tagged_argument_mp11<T> 29 >; 30 #else 31 struct is_named_argument 32 : ::boost::mpl::if_< 33 ::boost::parameter::aux::is_template_keyword<T> 34 , ::boost::mpl::true_ 35 , ::boost::parameter::aux::is_tagged_argument<T> 36 >::type 37 { 38 }; 39 #endif 40 }}} // namespace boost::parameter::aux 41 42 #endif // include guard 43 44