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)
6 #ifndef BOOST_PARAMETER_AUX_PACK_IS_NAMED_ARGUMENT_HPP
7 #define BOOST_PARAMETER_AUX_PACK_IS_NAMED_ARGUMENT_HPP
9 #include <boost/parameter/aux_/template_keyword.hpp>
10 #include <boost/parameter/aux_/is_tagged_argument.hpp>
11 #include <boost/parameter/config.hpp>
13 #if defined(BOOST_PARAMETER_CAN_USE_MP11)
14 #include <boost/mp11/integral.hpp>
15 #include <boost/mp11/utility.hpp>
17 #include <boost/mpl/bool.hpp>
18 #include <boost/mpl/if.hpp>
21 namespace boost { namespace parameter { namespace aux {
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>
31 struct is_named_argument
33 ::boost::parameter::aux::is_template_keyword<T>
35 , ::boost::parameter::aux::is_tagged_argument<T>
40 }}} // namespace boost::parameter::aux
42 #endif // include guard