12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef BOOST_HANA_FWD_CHAIN_HPP
- #define BOOST_HANA_FWD_CHAIN_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto chain = [](auto&& xs, auto&& f) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename M, typename = void>
- struct chain_impl : chain_impl<M, when<true>> { };
- struct chain_t {
- template <typename Xs, typename F>
- constexpr decltype(auto) operator()(Xs&& xs, F&& f) const;
- };
- constexpr chain_t chain{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|