123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef BOOST_HANA_FWD_SECOND_HPP
- #define BOOST_HANA_FWD_SECOND_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto second = [](auto&& product) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename P, typename = void>
- struct second_impl : second_impl<P, when<true>> { };
- struct second_t {
- template <typename Pair>
- constexpr decltype(auto) operator()(Pair&& pair) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr second_t second{};
- #endif
- }}
- #endif
|