/*! @file Defines `boost::hana::reverse_fold`. @copyright Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_REVERSE_FOLD_HPP #define BOOST_HANA_REVERSE_FOLD_HPP #include #include #include #include namespace boost { namespace hana { //! @cond template constexpr decltype(auto) reverse_fold_t::operator()(Xs&& xs, S&& s, F&& f) const { return hana::fold_right(static_cast(xs), static_cast(s), hana::flip(static_cast(f))); } template constexpr decltype(auto) reverse_fold_t::operator()(Xs&& xs, F&& f) const { return hana::fold_right(static_cast(xs), hana::flip(static_cast(f))); } //! @endcond }} // end namespace boost::hana #endif // !BOOST_HANA_REVERSE_FOLD_HPP