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