123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- #ifndef BOOST_PARAMETER_DEDUCED_HPP
- #define BOOST_PARAMETER_DEDUCED_HPP
- #include <boost/parameter/aux_/use_default.hpp>
- namespace boost { namespace parameter {
-
-
-
-
-
-
- template <typename Tag>
- struct deduced
- {
- typedef Tag key_type;
- };
- }}
- #include <boost/parameter/config.hpp>
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- #include <boost/mp11/integral.hpp>
- #else
- #include <boost/mpl/bool.hpp>
- #endif
- namespace boost { namespace parameter { namespace aux {
- template <typename T>
- struct is_deduced_aux
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- : ::boost::mp11::mp_false
- #else
- : ::boost::mpl::false_
- #endif
- {
- };
- template <typename Tag>
- struct is_deduced_aux< ::boost::parameter::deduced<Tag> >
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- : ::boost::mp11::mp_true
- #else
- : ::boost::mpl::true_
- #endif
- {
- };
- template <typename T>
- struct is_deduced0
- : ::boost::parameter::aux::is_deduced_aux<typename T::key_type>::type
- {
- };
- }}}
- #include <boost/parameter/required.hpp>
- #include <boost/parameter/optional.hpp>
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- #include <boost/mp11/utility.hpp>
- #else
- #include <boost/mpl/if.hpp>
- #endif
- namespace boost { namespace parameter { namespace aux {
-
-
-
-
-
-
-
-
-
-
-
- template <typename T>
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- using has_default = ::boost::mp11::mp_if<
- ::boost::parameter::aux::is_required<T>
- , ::boost::mp11::mp_false
- , ::boost::mp11::mp_true
- >;
- #else
- struct has_default
- : ::boost::mpl::if_<
- ::boost::parameter::aux::is_required<T>
- , ::boost::mpl::false_
- , ::boost::mpl::true_
- >::type
- {
- };
- #endif
- template <typename T>
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- using is_deduced = ::boost::mp11::mp_if<
- ::boost::mp11::mp_if<
- ::boost::parameter::aux::is_optional<T>
- , ::boost::mp11::mp_true
- , ::boost::parameter::aux::is_required<T>
- >
- , ::boost::parameter::aux::is_deduced0<T>
- , ::boost::mp11::mp_false
- >;
- #else
- struct is_deduced
- : ::boost::mpl::if_<
- typename ::boost::mpl::if_<
- ::boost::parameter::aux::is_optional<T>
- , ::boost::mpl::true_
- , ::boost::parameter::aux::is_required<T>
- >::type
- , ::boost::parameter::aux::is_deduced0<T>
- , ::boost::mpl::false_
- >::type
- {
- };
- #endif
- }}}
- #endif
|