123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef BOOST_HANA_FWD_REVERSE_FOLD_HPP
- #define BOOST_HANA_FWD_REVERSE_FOLD_HPP
- #include <boost/hana/config.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto reverse_fold = [](auto&& xs[, auto&& state], auto&& f) -> decltype(auto) {
- return fold_right(forwarded(xs), forwarded(state), flip(forwarded(f)));
- };
- #else
- struct reverse_fold_t {
- template <typename Xs, typename S, typename F>
- constexpr decltype(auto) operator()(Xs&& xs, S&& s, F&& f) const;
- template <typename Xs, typename F>
- constexpr decltype(auto) operator()(Xs&& xs, F&& f) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr reverse_fold_t reverse_fold{};
- #endif
- }}
- #endif
|