12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef BOOST_HANA_FWD_CONTAINS_HPP
- #define BOOST_HANA_FWD_CONTAINS_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- #include <boost/hana/functional/flip.hpp>
- #include <boost/hana/functional/infix.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto contains = [](auto&& xs, auto&& key) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct contains_impl : contains_impl<S, when<true>> { };
- struct contains_t {
- template <typename Xs, typename Key>
- constexpr auto operator()(Xs&& xs, Key&& key) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr auto contains = hana::infix(contains_t{});
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
- BOOST_HANA_INLINE_VARIABLE constexpr auto in = hana::infix(hana::flip(hana::contains));
- }}
- #endif
|