123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef BOOST_HANA_FWD_REPLICATE_HPP
- #define BOOST_HANA_FWD_REPLICATE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <typename M>
- constexpr auto replicate = [](auto&& x, auto const& n) {
- return tag-dispatched;
- };
- #else
- template <typename M, typename = void>
- struct replicate_impl : replicate_impl<M, when<true>> { };
- template <typename M>
- struct replicate_t {
- template <typename X, typename N>
- constexpr auto operator()(X&& x, N const& n) const;
- };
- template <typename M>
- constexpr replicate_t<M> replicate{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|