12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef BOOST_PARAMETER_OPTIONAL_HPP
- #define BOOST_PARAMETER_OPTIONAL_HPP
- #include <boost/parameter/aux_/use_default.hpp>
- namespace boost { namespace parameter {
-
-
-
-
-
-
-
-
-
-
-
- template <
- typename Tag
- , typename Predicate = ::boost::parameter::aux::use_default
- >
- struct optional
- {
- 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_optional
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- : ::boost::mp11::mp_false
- #else
- : ::boost::mpl::false_
- #endif
- {
- };
- template <typename Tag, typename Predicate>
- struct is_optional< ::boost::parameter::optional<Tag,Predicate> >
- #if defined(BOOST_PARAMETER_CAN_USE_MP11)
- : ::boost::mp11::mp_true
- #else
- : ::boost::mpl::true_
- #endif
- {
- };
- }}}
- #endif
|