12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef BOOST_HANA_FWD_SPAN_HPP
- #define BOOST_HANA_FWD_SPAN_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- #include <boost/hana/detail/nested_by_fwd.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto span = [](auto&& xs, auto&& predicate) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct span_impl : span_impl<S, when<true>> { };
- struct span_t : detail::nested_by<span_t> {
- template <typename Xs, typename Pred>
- constexpr auto operator()(Xs&& xs, Pred&& pred) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr span_t span{};
- #endif
- }}
- #endif
|