123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef BOOST_HANA_FWD_AP_HPP
- #define BOOST_HANA_FWD_AP_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto ap = [](auto&& f, auto&& ...x) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename A, typename = void>
- struct ap_impl : ap_impl<A, when<true>> { };
- struct ap_t {
- template <typename F, typename X>
- constexpr decltype(auto) operator()(F&& f, X&& x) const;
- template <typename F, typename ...Xs>
- constexpr decltype(auto) operator()(F&& f, Xs&& ...xs) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr ap_t ap{};
- #endif
- }}
- #endif
|