1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef BOOST_HANA_FWD_EXTEND_HPP
- #define BOOST_HANA_FWD_EXTEND_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto extend = [](auto&& w, auto&& f) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename W, typename = void>
- struct extend_impl : extend_impl<W, when<true>> { };
- struct extend_t {
- template <typename W_, typename F>
- constexpr decltype(auto) operator()(W_&& w, F&& f) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr extend_t extend{};
- #endif
- }}
- #endif
|