1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_HANA_FWD_COUNT_IF_HPP
- #define BOOST_HANA_FWD_COUNT_IF_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto count_if = [](auto&& xs, auto&& predicate) {
- return tag-dispatched;
- };
- #else
- template <typename T, typename = void>
- struct count_if_impl : count_if_impl<T, when<true>> { };
- struct count_if_t {
- template <typename Xs, typename Pred>
- constexpr auto operator()(Xs&& xs, Pred&& pred) const;
- };
- constexpr count_if_t count_if{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|