123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef BOOST_HANA_FWD_COUNT_HPP
- #define BOOST_HANA_FWD_COUNT_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto count = [](auto&& xs, auto&& value) {
- return tag-dispatched;
- };
- #else
- template <typename T, typename = void>
- struct count_impl : count_impl<T, when<true>> { };
- struct count_t {
- template <typename Xs, typename Value>
- constexpr auto operator()(Xs&& xs, Value&& value) const;
- };
- constexpr count_t count{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|