1 // Copyright Cromwell D. Enage 2019.
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_ALWAYS_TRUE_PREDICATE_HPP
7 #define BOOST_PARAMETER_AUX_ALWAYS_TRUE_PREDICATE_HPP
9 #include <boost/parameter/config.hpp>
10 #include <boost/mpl/bool.hpp>
12 #if defined(BOOST_PARAMETER_HAS_PERFECT_FORWARDING)
13 #if defined(BOOST_PARAMETER_CAN_USE_MP11)
14 #include <boost/mp11/integral.hpp>
17 #include <boost/mpl/always.hpp>
20 namespace boost { namespace parameter { namespace aux {
22 #if defined(BOOST_PARAMETER_HAS_PERFECT_FORWARDING)
23 struct always_true_predicate
25 template <typename ...>
28 typedef ::boost::mpl::true_ type;
31 #if defined(BOOST_PARAMETER_CAN_USE_MP11)
32 template <typename ...>
33 using fn = ::boost::mp11::mp_true;
37 typedef ::boost::mpl::always< ::boost::mpl::true_> always_true_predicate;
38 #endif // BOOST_NO_CXX11_VARIADIC_TEMPLATES
39 }}} // namespace boost::parameter::aux
41 #endif // include guard