123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef BOOST_PARAMETER_REQUIRED_HPP
- #define BOOST_PARAMETER_REQUIRED_HPP
- #include <boost/parameter/aux_/use_default.hpp>
- namespace boost { namespace parameter {
-
-
-
-
-
-
-
-
-
-
- template <
- typename Tag
- , typename Predicate = ::boost::parameter::aux::use_default
- >
- struct required
- {
- typedef Tag key_type;
- typedef Predicate predicate;
- };
- }}
- #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_required
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- : ::boost::mp11::mp_false
- #else
- : ::boost::mpl::false_
- #endif
- {
- };
- template <typename Tag, typename Predicate>
- struct is_required< ::boost::parameter::required<Tag,Predicate> >
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- : ::boost::mp11::mp_true
- #else
- : ::boost::mpl::true_
- #endif
- {
- };
- }}}
- #endif
|