12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef BOOST_HANA_DETAIL_ANY_OF_HPP
- #define BOOST_HANA_DETAIL_ANY_OF_HPP
- #include <boost/hana/config.hpp>
- #include <type_traits>
- #include <utility>
- namespace boost { namespace hana { namespace detail {
- std::false_type expand(...);
- template <template <typename ...> class Predicate, typename ...T>
- decltype(expand(
- typename std::enable_if<!Predicate<T>::value, void*>::type{}...
- )) any_of_impl(int);
- template <template <typename ...> class Predicate, typename ...T>
- std::true_type any_of_impl(...);
-
-
-
-
-
-
-
-
-
-
- template <template <typename ...> class Predicate, typename ...T>
- struct any_of
- : decltype(any_of_impl<Predicate, T...>(int{}))
- { };
- } }}
- #endif
|