123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #ifndef BOOST_HANA_FWD_SCAN_LEFT_HPP
- #define BOOST_HANA_FWD_SCAN_LEFT_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto scan_left = [](auto&& xs[, auto&& state], auto const& f) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct scan_left_impl : scan_left_impl<S, when<true>> { };
- struct scan_left_t {
- template <typename Xs, typename State, typename F>
- constexpr auto operator()(Xs&& xs, State&& state, F const& f) const;
- template <typename Xs, typename F>
- constexpr auto operator()(Xs&& xs, F const& f) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr scan_left_t scan_left{};
- #endif
- }}
- #endif
|