1
0
forked from boostorg/mp11

Do not use function.hpp in algorithm.hpp.

This commit is contained in:
Peter Dimov
2016-11-16 19:55:35 +02:00
parent 709f941f00
commit cc3d54a857

View File

@@ -12,7 +12,7 @@
#include <boost/mp11/set.hpp> #include <boost/mp11/set.hpp>
#include <boost/mp11/integral.hpp> #include <boost/mp11/integral.hpp>
#include <boost/mp11/utility.hpp> #include <boost/mp11/utility.hpp>
#include <boost/mp11/function.hpp> #include <boost/mp11/detail/mp_plus.hpp>
#include <boost/mp11/detail/mp_map_find.hpp> #include <boost/mp11/detail/mp_map_find.hpp>
#include <boost/mp11/detail/config.hpp> #include <boost/mp11/detail/config.hpp>
#include <boost/integer_sequence.hpp> #include <boost/integer_sequence.hpp>
@@ -796,13 +796,13 @@ template<template<class...> class L, class... T> struct mp_unique_impl<L<T...>>
template<class L> using mp_unique = typename detail::mp_unique_impl<L>::type; template<class L> using mp_unique = typename detail::mp_unique_impl<L>::type;
// mp_all_of<L, P> // mp_all_of<L, P>
template<class L, template<class...> class P> using mp_all_of = mp_equal_to< mp_count_if<L, P>, mp_size<L> >; template<class L, template<class...> class P> using mp_all_of = mp_bool< mp_count_if<L, P>::value == mp_size<L>::value >;
// mp_none_of<L, P> // mp_none_of<L, P>
template<class L, template<class...> class P> using mp_none_of = mp_not< mp_count_if<L, P> >; template<class L, template<class...> class P> using mp_none_of = mp_bool< mp_count_if<L, P>::value == 0 >;
// mp_any_of<L, P> // mp_any_of<L, P>
template<class L, template<class...> class P> using mp_any_of = mp_to_bool< mp_count_if<L, P> >; template<class L, template<class...> class P> using mp_any_of = mp_bool< mp_count_if<L, P>::value != 0 >;
} // namespace boost } // namespace boost