12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef BOOST_HANA_FWD_REPLACE_HPP
- #define BOOST_HANA_FWD_REPLACE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto replace = [](auto&& xs, auto&& oldval, auto&& newval) {
- return tag-dispatched;
- };
- #else
- template <typename Xs, typename = void>
- struct replace_impl : replace_impl<Xs, when<true>> { };
- struct replace_t {
- template <typename Xs, typename OldVal, typename NewVal>
- constexpr auto operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const;
- };
- constexpr replace_t replace{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|