// Copyright David Abrahams, Daniel Wallin 2003. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef ACTIV_BOOST_PARAMETER_AUX_PACK_PREDICATE_HPP #define ACTIV_BOOST_PARAMETER_AUX_PACK_PREDICATE_HPP namespace Boost { namespace parameter { namespace aux { // helper for get_predicate<...>, below template struct get_predicate_or_default { typedef T type; }; // helper for predicate<...>, below template struct get_predicate : ::Boost::parameter::aux ::get_predicate_or_default { }; }}} // namespace Boost::parameter::aux #include #include namespace Boost { namespace parameter { namespace aux { template <> struct get_predicate_or_default< ::Boost::parameter::aux::use_default> { typedef ::Boost::parameter::aux::always_true_predicate type; }; }}} // namespace Boost::parameter::aux #include #include #include #if defined(ACTIV_BOOST_PARAMETER_CAN_USE_MP11) #include #include #else #include #include #include #include #endif namespace Boost { namespace parameter { namespace aux { template #if defined(ACTIV_BOOST_PARAMETER_CAN_USE_MP11) using predicate = ::Boost::mp11::mp_if< ::Boost::mp11::mp_if< ::Boost::parameter::aux::is_optional , ::Boost::mp11::mp_true , ::Boost::parameter::aux::is_required > , ::Boost::parameter::aux::get_predicate , ::Boost::mp11::mp_identity< ::Boost::parameter::aux::always_true_predicate > >; #else struct predicate : ::Boost::mpl::eval_if< typename ::Boost::mpl::if_< ::Boost::parameter::aux::is_optional , ::Boost::mpl::true_ , ::Boost::parameter::aux::is_required >::type , ::Boost::parameter::aux::get_predicate , ::Boost::mpl::identity< ::Boost::parameter::aux::always_true_predicate > > { }; #endif // ACTIV_BOOST_PARAMETER_CAN_USE_MP11 }}} // namespace Boost::parameter::aux #endif // include guard