123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef BOOST_HANA_FWD_REPLACE_IF_HPP
- #define BOOST_HANA_FWD_REPLACE_IF_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto replace_if = [](auto&& xs, auto&& predicate, auto&& value) {
- return tag-dispatched;
- };
- #else
- template <typename Xs, typename = void>
- struct replace_if_impl : replace_if_impl<Xs, when<true>> { };
- struct replace_if_t {
- template <typename Xs, typename Pred, typename Value>
- constexpr auto operator()(Xs&& xs, Pred&& pred, Value&& value) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr replace_if_t replace_if{};
- #endif
- }}
- #endif
|